if as non-root we failed to update the group of a file then don't
authorAndrew Tridgell <tridge@samba.org>
Thu, 18 Jun 1998 10:03:44 +0000 (10:03 +0000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 18 Jun 1998 10:03:44 +0000 (10:03 +0000)
print the file name.

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