From: Wayne Davison Date: Sun, 25 Nov 2007 21:49:41 +0000 (-0800) Subject: We now call set_stat_xattr() before set_xattr(). X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/4d7c8e6b76b6a69cc044580f5759546a0570b65e We now call set_stat_xattr() before set_xattr(). --- diff --git a/rsync.c b/rsync.c index ca122561..47b0ca13 100644 --- a/rsync.c +++ b/rsync.c @@ -380,10 +380,10 @@ int set_file_attrs(const char *fname, struct file_struct *file, stat_x *sxp, #endif #ifdef SUPPORT_XATTRS - if (preserve_xattrs && fnamecmp) - set_xattr(fname, file, fnamecmp, sxp); if (am_root < 0) set_stat_xattr(fname, file, new_mode); + if (preserve_xattrs && fnamecmp) + set_xattr(fname, file, fnamecmp, sxp); #endif if (!preserve_times || (S_ISDIR(sxp->st.st_mode) && preserve_times == 1))