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

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


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 25 Apr 2009 11:42:49 -0700 (PDT)

commit 17e9c4cc4240ac392aaf9180af0240f1b900c0e5
Author: Matthew Dillon <dillon@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



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