The Samba-Bugzilla – Attachment 5969 Details for
Bug 7685
rsync should not set the creation date on the root folder of an HFS+ volume
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Avoid setting inode 2 if it is a directory.
crtime.patch (text/plain), 838 bytes, created by
Wayne Davison
on 2010-09-18 12:35:56 UTC
(
hide
)
Description:
Avoid setting inode 2 if it is a directory.
Filename:
MIME Type:
Creator:
Wayne Davison
Created:
2010-09-18 12:35:56 UTC
Size:
838 bytes
patch
obsolete
>commit 01794e4cff6bd3e926d1c0c7b2b8d0510310ae66 >Author: Wayne Davison <wayned@samba.org> >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));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 7685
:
5966
| 5969