Moved the set_xattr() call back after do_chmod().
authorWayne Davison <wayned@samba.org>
Thu, 9 Mar 2006 19:51:50 +0000 (19:51 +0000)
committerWayne Davison <wayned@samba.org>
Thu, 9 Mar 2006 19:51:50 +0000 (19:51 +0000)
xattrs.diff

index 193cae4..bb2c574 100644 (file)
@@ -320,7 +320,7 @@ After applying this patch, run these commands for a successful build:
  extern int preserve_perms;
  extern int preserve_executability;
  extern int preserve_times;
-@@ -211,6 +212,10 @@ int set_file_attrs(char *fname, struct f
+@@ -225,6 +226,10 @@ int set_file_attrs(char *fname, struct f
        if (preserve_acls && set_acl(fname, file) == 0)
                updated = 1;
  #endif
@@ -329,8 +329,8 @@ After applying this patch, run these commands for a successful build:
 +              updated = 1;
 +#endif
  
- #ifdef HAVE_CHMOD
-       if ((st->st_mode & CHMOD_BITS) != (file->mode & CHMOD_BITS)) {
+       if (verbose > 1 && flags & ATTRS_REPORT) {
+               enum logcode code = daemon_log_format_has_i || dry_run
 --- old/rsync.h
 +++ new/rsync.h
 @@ -672,6 +672,14 @@ struct chmod_mode_struct;