From 384431886a70c745beb72a4196a0231a658f4745 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Thu, 13 May 2004 18:51:22 +0000 Subject: [PATCH] Changed PERMS_SKIP_TIME to PERMS_SKIP_MTIME. --- rsync.c | 6 +++--- rsync.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/rsync.c b/rsync.c index f893f7bc..6c3f8069 100644 --- 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 87392b26..ac453efe 100644 --- a/rsync.h +++ b/rsync.h @@ -109,8 +109,8 @@ #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 -- 2.34.1