Displaying 2 results from an estimated 2 matches for "save_preserve_xattr".
Did you mean:
save_preserve_xattrs
2015 Jan 16
3
wrong transfer of app packages using --backup
Dear All,
I have been seeing some strange behavior using rsync 3.1.1 on OSX with the 3 standard patches applied when using the --backup and --backup-Dir options.
This works as expected on 3.0.9, moving any files on dest that are not on source to the backup folder. If no changes then the backup folder is not even created.
-aHAXN --fileflags --force-change --protect-decmpfs ?delete --backup
2015 Jan 23
0
rsync 3.1.1 wrong transfer of app packages using --backup
..._x sx;
char *b, *rel = backup_dir_buf + backup_dir_len, *name = rel;
+
+ if (x_lstat(fname, &sx.st, NULL) < 0)
+ return 1;
for (f = fname, b = rel; *f && *f == *b; f++, b++) {
if (*b == '/')
@@ -215,17 +218,18 @@
stat_x sx;
struct file_struct *file;
int save_preserve_xattrs;
- char *buf = get_backup_name(fname);
- int ret = 0;
-
- if (!buf)
- return 0;
-
- init_stat_x(&sx);
+ int ret = 0;
+
+ init_stat_x(&sx);
/* Return success if no file to keep. */
if (x_lstat(fname, &sx.st, NULL) < 0)
return 1;
-
+
+ char *buf = get_backup_name...