Add cpdup feature - allow uid/gid/flags changes to fail if running as user
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 25 Apr 2009 18:39:45 +0000 (11:39 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 25 Apr 2009 18:39:45 +0000 (11:39 -0700)
commit17e9c4cc4240ac392aaf9180af0240f1b900c0e5
tree31663ad6408f7b6252df0176cde43372f2e9615d
parent80e030b988cef5870b96b49f9015fb64daa92fac
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.
bin/cpdup/cpdup.c
bin/cpdup/cpdup.h
bin/cpdup/hcproto.c