]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cp: Add -N flag, inspired by NetBSD's similar flag
authorWarner Losh <imp@FreeBSD.org>
Thu, 7 Dec 2023 19:32:27 +0000 (12:32 -0700)
committerWarner Losh <imp@FreeBSD.org>
Thu, 7 Dec 2023 20:36:44 +0000 (13:36 -0700)
commit5a52e3d00dd5e0209f6fcb1e41b5985191e6f4e7
treefcd21daee593f21a310652360be884ea152588a8
parent69ae43a1e6a53a1b8898a31c6b7140bf52b2c3ad
cp: Add -N flag, inspired by NetBSD's similar flag

Add -N to supress copying of file flags when -p is specified (explicitly
or implicitly). Often times we don't care about the flags or wish to be
able to copy to NFS, and this comes in handy for that. FreeBSD's and
NetBSD's cp are somewhat different, so I had to reimplement all but one
of the patch hunks...

Obtained from: NetBSD (cp.1 1.25, cp.c 1.37, utils.c 1.28 by elad)
Sponsored by: Netflix

Differential Revision: https://reviews.freebsd.org/D42673
bin/cp/cp.1
bin/cp/cp.c
bin/cp/extern.h
bin/cp/utils.c