[SCM] The rsync repository. - branch master updated

Rsync CVS commit messages rsync-cvs at lists.samba.org
Sun Oct 10 21:02:16 UTC 2021


The branch, master has been updated
       via  3af00277 We need stat memcpy.
      from  b774dbc1 Improve --omit-dir-times & --omit-link-times

https://git.samba.org/?p=rsync.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 3af00277eed3a805ea601476a701f05b11f441a0
Author: Wayne Davison <wayne at opencoder.net>
Date:   Sun Oct 10 14:01:59 2021 -0700

    We need stat memcpy.

-----------------------------------------------------------------------

Summary of changes:
 rsync.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


Changeset truncated at 500 lines:

diff --git a/rsync.c b/rsync.c
index 6c5a06bf..7c821986 100644
--- a/rsync.c
+++ b/rsync.c
@@ -587,7 +587,7 @@ int set_file_attrs(const char *fname, struct file_struct *file, stat_x *sxp,
 	/* Don't set the creation date on the root folder of an HFS+ volume. */
 	if (sxp->st.st_ino == 2 && S_ISDIR(sxp->st.st_mode))
 		flags |= ATTRS_SKIP_CRTIME;
-	if (sxp != &sx2 && !(flags & (ATTRS_SKIP_MTIME | ATTRS_SKIP_ATIME)))
+	if (sxp != &sx2)
 		memcpy(&sx2.st, &sxp->st, sizeof sx2.st);
 	if (!(flags & ATTRS_SKIP_MTIME) && !same_mtime(file, &sxp->st, flags & ATTRS_ACCURATE_TIME)) {
 		sx2.st.st_mtime = file->modtime;


-- 
The rsync repository.



More information about the rsync-cvs mailing list