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

看板DFBSD_commit作者時間16年前 (2009/07/08 02:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit c065129d9b559c4dda62925b43d5d08c7c33abd5 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/c065129d9b559c4dda62925b43d5d08c7c33abd5 -- DragonFly BSD source repository
文章代碼(AID): #1AKvInwZ (DFBSD_commit)