diff -u -r rsync-2.6.6/rsync.h /root/rsync-2.6.6.new/rsync.h --- rsync-2.6.6/rsync.h 2005-10-16 18:49:26.000000000 +0000 +++ rsync-2.6.6.new/rsync.h 2005-10-16 18:47:04.000000000 +0000 @@ -700,12 +700,12 @@ #define SEND_XATTR(file, f) #define RECEIVE_XATTR(file, f) #define SORT_FILE_XATTR_INDEX_LISTS() -#define SET_XATTR(fname, file) 0 /* checked return value */ +#define SET_XATTR(fname, file) 1 /* checked return value */ #define NEXT_XATTR_UID() #define XATTR_UID_MAP(uid) #define PUSH_KEEP_BACKUP_XATTR(file, orig, dest) #define CLEANUP_KEEP_BACKUP_XATTR() -#define DUP_XATTR(src, orig) 0 /* checked return value */ +#define DUP_XATTR(src, orig) 1 /* checked return value */ #endif /* SUPPORT_XATTRS */ #include "proto.h" diff -u -r rsync-2.6.6/xattr.c /root/rsync-2.6.6.new/xattr.c --- rsync-2.6.6/xattr.c 2005-10-16 18:49:26.000000000 +0000 +++ rsync-2.6.6.new/xattr.c 2005-10-16 18:44:10.000000000 +0000 @@ -458,7 +458,7 @@ static int set_keep_backup_xal(void) { if (!preserve_xattrs) - return 0; + return 1; return rsync_xal_set(backup_dest_fname, &backup_xal); } @@ -532,7 +532,7 @@ updated = 0; if (dry_run || !preserve_xattrs) - return 0; + return 1; if (file == backup_orig_file) { if (!strcmp(fname, backup_dest_fname)) return set_keep_backup_xal();