From 4d7c8e6b76b6a69cc044580f5759546a0570b65e Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sun, 25 Nov 2007 13:49:41 -0800 Subject: [PATCH] We now call set_stat_xattr() before set_xattr(). --- rsync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) -- 2.34.1