[SCM] The rsync repository. - branch master updated
Rsync CVS commit messages
rsync-cvs at lists.samba.org
Mon Apr 27 01:43:41 UTC 2020
The branch, master has been updated
via c1cb307b Fix a couple issues with the atime file-list value.
from af6118d9 Allow a missing parent dir when --delete-missing-args was specified.
https://git.samba.org/?p=rsync.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit c1cb307b4b02cce539effcc01c82c060cd6facd0
Author: Wayne Davison <wayne at opencoder.net>
Date: Sun Apr 26 18:39:15 2020 -0700
Fix a couple issues with the atime file-list value.
-----------------------------------------------------------------------
Summary of changes:
flist.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
Changeset truncated at 500 lines:
diff --git a/flist.c b/flist.c
index a756fb67..d5f169ce 100644
--- a/flist.c
+++ b/flist.c
@@ -770,6 +770,8 @@ static struct file_struct *recv_file_entry(int f, struct file_list *flist, int x
modtime = first->modtime;
modtime_nsec = F_MOD_NSEC_or_0(first);
mode = first->mode;
+ if (atimes_ndx && !S_ISDIR(mode))
+ atime = F_ATIME(first);
if (preserve_uid)
uid = F_OWNER(first);
if (preserve_gid)
@@ -985,7 +987,7 @@ static struct file_struct *recv_file_entry(int f, struct file_list *flist, int x
F_GROUP(file) = gid;
file->flags |= gid_flags;
}
- if (atimes_ndx)
+ if (atimes_ndx && !S_ISDIR(mode))
F_ATIME(file) = atime;
if (unsort_ndx)
F_NDX(file) = flist->used + flist->ndx_start;
@@ -1384,7 +1386,7 @@ struct file_struct *make_file(const char *fname, struct file_list *flist,
F_GROUP(file) = st.st_gid;
if (am_generator && st.st_uid == our_uid)
file->flags |= FLAG_OWNED_BY_US;
- if (atimes_ndx)
+ if (atimes_ndx && !S_ISDIR(file->mode))
F_ATIME(file) = st.st_atime;
if (basename != thisname)
--
The rsync repository.
More information about the rsync-cvs
mailing list