The Samba-Bugzilla – Attachment 5966 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]
patch to the crtimes patch
crtimes_hfs+.diff (text/plain), 815 bytes, created by
Mike Bombich
on 2010-09-16 14:18:44 UTC
(
hide
)
Description:
patch to the crtimes patch
Filename:
MIME Type:
Creator:
Mike Bombich
Created:
2010-09-16 14:18:44 UTC
Size:
815 bytes
patch
obsolete
>This patch prevents rsync from changing the creation date on the root of a volume. On HFS+, the root inode is always 2, as defined in hfs/hfs_format.h: > >kHFSRootFolderID = 2, /* Folder ID of the root folder */ > >So before calling set_create_time(), we verify from the existing stat struct that the inode of the current file is not 2. > >diff -Naur rsync-3.0.7_orig/rsync.c rsync-3.0.7/rsync.c >--- rsync-3.0.7_orig/rsync.c 2010-09-16 10:49:54.000000000 -0500 >+++ rsync-3.0.7/rsync.c 2010-09-16 10:50:43.000000000 -0500 >@@ -480,6 +480,7 @@ > if (sxp->crtime == 0) > sxp->crtime = get_create_time(fname); > if (cmp_time(sxp->crtime, file_crtime) != 0 >+ && sxp->st.st_ino != 2 // Don't set the creation date on the root folder of an HFS+ volume > && set_create_time(fname, file_crtime) == 0) > updated = 1; > }
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