summaryrefslogtreecommitdiff
path: root/rsync.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2009-01-03 08:53:59 -0800
committerWayne Davison <wayned@samba.org>2009-01-03 08:53:59 -0800
commit09ca0d15d31d93a5964a1db4c387879f31c22831 (patch)
treea966cbf8f02b8796d5c8d9f66e3c533ad97a4b41 /rsync.c
parentc43c66125e8fd35896a358ccce9687ebcfe82dc5 (diff)
downloadrsync-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.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/rsync.c b/rsync.c
index 845517d6..49cc41c7 100644
--- a/rsync.c
+++ b/rsync.c
@@ -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