commit 01794e4cff6bd3e926d1c0c7b2b8d0510310ae66 Author: Wayne Davison Date: Sat Sep 18 10:32:09 2010 -0700 Avoid setting creation time on root dir of HFS+ volume. Fixes #7685. diff --git a/rsync.c b/rsync.c index 26973a8..b61425d 100644 --- a/rsync.c +++ b/rsync.c @@ -462,6 +462,9 @@ int set_file_attrs(const char *fname, struct file_struct *file, stat_x *sxp, if (!preserve_times || (S_ISDIR(sxp->st.st_mode) && preserve_times == 1)) flags |= ATTRS_SKIP_MTIME; + /* 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 (!(flags & ATTRS_SKIP_MTIME) && cmp_time(sxp->st.st_mtime, file->modtime) != 0) { int ret = set_modtime(fname, file->modtime, sxp->st.st_mode, ST_FLAGS(sxp->st));