Don't try to use recv_xattr_request() with --dry-run. Fixes an
[rsync/rsync.git] / sender.c
index fc9c47c..7ec17b4 100644 (file)
--- a/sender.c
+++ b/sender.c
@@ -229,7 +229,7 @@ void send_files(int f_in, int f_out)
                        rprintf(FINFO, "send_files(%d, %s%s%s)\n", ndx, path,slash,fname);
 
 #ifdef SUPPORT_XATTRS
-               if (preserve_xattrs && iflags & ITEM_REPORT_XATTR)
+               if (preserve_xattrs && iflags & ITEM_REPORT_XATTR && !dry_run)
                        recv_xattr_request(file, f_in);
 #endif