X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/7b6c5c77942b8d11631c873b008e0b405d435bc0..4c3e9c09eb0fe3c56afe0c8e8e8d435a0448d626:/flist.c diff --git a/flist.c b/flist.c index 1dee0874..7208efa4 100644 --- a/flist.c +++ b/flist.c @@ -1476,6 +1476,7 @@ static struct file_struct *send_file_name(int f, struct file_list *flist, #endif #ifdef SUPPORT_XATTRS if (preserve_xattrs) { + sx.st.st_mode = file->mode; if (get_xattr(fname, &sx) < 0) { io_error |= IOERR_GENERAL; return NULL;