Changed PERMS_SKIP_TIME to PERMS_SKIP_MTIME.
authorWayne Davison <wayned@samba.org>
Thu, 13 May 2004 18:51:22 +0000 (18:51 +0000)
committerWayne Davison <wayned@samba.org>
Thu, 13 May 2004 18:51:22 +0000 (18:51 +0000)
rsync.c
rsync.h

diff --git a/rsync.c b/rsync.c
index f893f7b..6c3f806 100644 (file)
--- a/rsync.c
+++ b/rsync.c
@@ -139,8 +139,8 @@ int set_perms(char *fname,struct file_struct *file,STRUCT_STAT *st,
        }
 
        if (!preserve_times || S_ISLNK(st->st_mode))
-               flags |= PERMS_SKIP_TIME;
-       if (!(flags & PERMS_SKIP_TIME)
+               flags |= PERMS_SKIP_MTIME;
+       if (!(flags & PERMS_SKIP_MTIME)
            && cmp_modtime(st->st_mtime, file->modtime) != 0) {
                /* don't complain about not setting times on directories
                 * because some filesystems can't do it */
@@ -245,7 +245,7 @@ void finish_transfer(char *fname, char *fnametmp, struct file_struct *file,
                do_unlink(fnametmp);
        } else {
                set_perms(fname, file, NULL,
-                         ok_to_set_time ? 0 : PERMS_SKIP_TIME);
+                         ok_to_set_time ? 0 : PERMS_SKIP_MTIME);
        }
 }
 
diff --git a/rsync.h b/rsync.h
index 87392b2..ac453ef 100644 (file)
--- a/rsync.h
+++ b/rsync.h
 #define XFLG_WORDS_ONLY        (1<<2)
 #define XFLG_WORD_SPLIT        (1<<3)
 
-#define PERMS_REPORT   (1<<0)
-#define PERMS_SKIP_TIME        (1<<1)
+#define PERMS_REPORT           (1<<0)
+#define PERMS_SKIP_MTIME       (1<<1)
 
 #define FULL_FLUSH     1
 #define NORMAL_FLUSH   0