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 <wa...@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.

_______________________________________________
rsync-cvs mailing list
rsync-cvs@lists.samba.org
https://lists.samba.org/mailman/listinfo/rsync-cvs

Reply via email to