git: bug 2443: bin/cp: sync with FreeBSD (bug fixes + new options)
John Marino
marino at crater.dragonflybsd.org
Thu Nov 15 15:08:11 PST 2012
commit 7cfd531a3bf703c2ef3f01a325d0f976c2294303
Author: John Marino <draco at marino.st>
Date: Thu Nov 15 21:57:01 2012 +0100
bug 2443: bin/cp: sync with FreeBSD (bug fixes + new options)
* Fix FTS_NOCHDIR behavior on empty directory.
* Add -a option (archive mode, equivalent to -RpP)
* Add -l option (create hard links instead of copying)
* Add -x option (FS mount points are not traversed)
* Preserve file flags on symlinks on cp -Rp
* Don't copy socket anyway after "xxx is a socket (not copied)"
* Avoid division-by-zero situations
* make -r synonym for -R but maintain -r behavior with -L
Taken-from: FreeBSD (multiple commits)
https://bugs.dragonflybsd.org/issues/2443
Summary of changes:
bin/cp/cp.1 | 45 ++++++++++----
bin/cp/cp.c | 113 ++++++++++++++++++----------------
bin/cp/extern.h | 9 +--
bin/cp/utils.c | 171 +++++++++++++++++++++++++++-------------------------
lib/libc/gen/fts.c | 11 +---
5 files changed, 187 insertions(+), 162 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7cfd531a3bf703c2ef3f01a325d0f976c2294303
--
DragonFly BSD source repository
More information about the Commits
mailing list