DragonFly-2.3.0.807.g17e9c master bin/cpdup cpdup.c cpdup.h hcproto.c

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Apr 25 11:44:06 PDT 2009


commit 17e9c4cc4240ac392aaf9180af0240f1b900c0e5
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Apr 25 11:39:45 2009 -0700

    Add cpdup feature - allow uid/gid/flags changes to fail if running as user
    
    If running as a user instead of root uid, gid, and flags changes are allowed
    to fail and also, if running as a user, no longer force a copy if they
    differ but the mtime and size are the same.  Generate a single warning
    instead.
    
    Reorder the call to setutimes to occur after chown/chmod instead of before,
    and to occur after a chflags call if IMMUTABLE is not set.

Summary of changes:
 bin/cpdup/cpdup.c   |   89 +++++++++++++++++++++++++++++++++++++++------------
 bin/cpdup/cpdup.h   |    2 +
 bin/cpdup/hcproto.c |   84 +++++++++++++++++++++++++++++++++++++++++++-----
 3 files changed, 145 insertions(+), 30 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/17e9c4cc4240ac392aaf9180af0240f1b900c0e5


-- 
DragonFly BSD source repository





More information about the Commits mailing list