X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/f1ca7c4429f2a8e9de72f91d95218bb324df6a9e..e9489cd6cb380b30727bd3d074eacc59abca080e:/backup.c diff --git a/backup.c b/backup.c index 22cfc712..c3f66ebe 100644 --- a/backup.c +++ b/backup.c @@ -204,6 +204,7 @@ static int keep_backup(const char *fname) stat_x sx; struct file_struct *file; char *buf; + int save_preserve_xattrs = preserve_xattrs; int kept = 0; int ret_code; @@ -338,7 +339,9 @@ static int keep_backup(const char *fname) robust_unlink(fname); /* Just in case... */ } } + preserve_xattrs = 0; set_file_attrs(buf, file, NULL, fname, 0); + preserve_xattrs = save_preserve_xattrs; unmake_file(file); if (verbose > 1) {