DragonFly-2.3.0.808.gc06512 master bin/cpdup cpdup.c cpdup.h hcproto.c

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Jul 7 11:22:14 PDT 2009


commit c065129d9b559c4dda62925b43d5d08c7c33abd5
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/c065129d9b559c4dda62925b43d5d08c7c33abd5


-- 
DragonFly BSD source repository





More information about the Commits mailing list