if as non-root we failed to update the group of a file then don't
[rsync/rsync.git] / rsync.c
diff --git a/rsync.c b/rsync.c
index 00c6beb..1ec4c77 100644 (file)
--- a/rsync.c
+++ b/rsync.c
@@ -304,8 +304,9 @@ static int set_perms(char *fname,struct file_struct *file,STRUCT_STAT *st,
                                        fname,strerror(errno));
                                return 0;
                        }
+               } else {
+                       updated = 1;
                }
-               updated = 1;
        }
 
 #ifdef HAVE_CHMOD