diff options
author | Wayne Davison <wayned@samba.org> | 2009-01-03 08:53:59 -0800 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2009-01-03 08:53:59 -0800 |
commit | 09ca0d15d31d93a5964a1db4c387879f31c22831 (patch) | |
tree | a966cbf8f02b8796d5c8d9f66e3c533ad97a4b41 /rsync.c | |
parent | c43c66125e8fd35896a358ccce9687ebcfe82dc5 (diff) | |
download | rsync-09ca0d15d31d93a5964a1db4c387879f31c22831.tar.gz rsync-09ca0d15d31d93a5964a1db4c387879f31c22831.tar.bz2 rsync-09ca0d15d31d93a5964a1db4c387879f31c22831.zip |
Added init_stat_x() to avoid duplication of acl/xattr init code.
Diffstat (limited to 'rsync.c')
-rw-r--r-- | rsync.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -395,12 +395,7 @@ int set_file_attrs(const char *fname, struct file_struct *file, stat_x *sxp, full_fname(fname)); return 0; } -#ifdef SUPPORT_ACLS - sx2.acc_acl = sx2.def_acl = NULL; -#endif -#ifdef SUPPORT_XATTRS - sx2.xattr = NULL; -#endif + init_stat_x(&sx2); sxp = &sx2; inherit = !preserve_perms; } else |