DragonFly BSD
DragonFly commits List (threaded) for 2012-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: bug 2443: bin/cp: sync with FreeBSD (bug fixes + new options)


From: John Marino <marino@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 15 Nov 2012 15:08:11 -0800 (PST)

commit 7cfd531a3bf703c2ef3f01a325d0f976c2294303
Author: John Marino <draco@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]