summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2011-03-26 10:17:14 -0700
committerWayne Davison <wayned@samba.org>2011-03-26 10:17:14 -0700
commit959bd708209d6cbb9c9c7aa34de7b8f9423da0de (patch)
tree5c53ae63a4a9457104ef6102217d6ad278350d38
parenta7271fb30f37490618fb03ff83461fd24acab20a (diff)
downloadrsync-959bd708209d6cbb9c9c7aa34de7b8f9423da0de.tar.gz
Tweak dir xattrs after the writability fudging.
-rw-r--r--generator.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/generator.c b/generator.c
index b914ddf1..4f74597e 100644
--- a/generator.c
+++ b/generator.c
@@ -1522,13 +1522,6 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
goto cleanup;
}
}
-#ifdef SUPPORT_XATTRS
- if (preserve_xattrs && statret == 1)
- copy_xattrs(fnamecmpbuf, fname);
-#endif
- if (set_file_attrs(fname, file, real_ret ? NULL : &real_sx, NULL, 0)
- && verbose && code != FNONE && f_out != -1)
- rprintf(code, "%s/\n", fname);
/* We need to ensure that the dirs in the transfer have writable
* permissions during the time we are putting files within them.
@@ -1545,6 +1538,14 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
}
#endif
+#ifdef SUPPORT_XATTRS
+ if (preserve_xattrs && statret == 1)
+ copy_xattrs(fnamecmpbuf, fname);
+#endif
+ if (set_file_attrs(fname, file, real_ret ? NULL : &real_sx, NULL, 0)
+ && verbose && code != FNONE && f_out != -1)
+ rprintf(code, "%s/\n", fname);
+
if (real_ret != 0 && one_file_system)
real_sx.st.st_dev = filesystem_dev;
if (inc_recurse) {