The Samba-Bugzilla – Attachment 5288 Details for
Bug 6276
crtimes.patch does not preserve creation dates on Mac x86_64 only
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to fix creation dates bug on Mac x86_64
fix_get_create_time.patch (text/plain), 1011 bytes, created by
Steve Ortiz
on 2010-02-06 01:14:42 UTC
(
hide
)
Description:
patch to fix creation dates bug on Mac x86_64
Filename:
MIME Type:
Creator:
Steve Ortiz
Created:
2010-02-06 01:14:42 UTC
Size:
1011 bytes
patch
obsolete
>diff -Naur rsync-3.0.7.old/syscall.c rsync-3.0.7.new/syscall.c >--- rsync-3.0.7.old/syscall.c 2010-02-05 22:37:11.000000000 -0500 >+++ rsync-3.0.7.new/syscall.c 2010-02-05 22:40:02.000000000 -0500 >@@ -37,11 +37,6 @@ > extern int preserve_perms; > extern int preserve_executability; > >-struct create_time { >- unsigned long length; >- struct timespec crtime; >-}; >- > #define RETURN_ERROR_IF(x,e) \ > do { \ > if (x) { \ >@@ -402,7 +397,8 @@ > > time_t get_create_time(const char *path) > { >- static struct create_time attrBuf; >+ static char attrBuf[sizeof(u_int32_t) + sizeof(struct timespec)]; >+ static struct timespec *crtime = (struct timespec*)&attrBuf[sizeof(u_int32_t)]; > struct attrlist attrList; > > memset(&attrList, 0, sizeof attrList); >@@ -410,7 +406,7 @@ > attrList.commonattr = ATTR_CMN_CRTIME; > if (getattrlist(path, &attrList, &attrBuf, sizeof attrBuf, FSOPT_NOFOLLOW) < 0) > return 0; >- return attrBuf.crtime.tv_sec; >+ return crtime->tv_sec; > } > > int set_create_time(const char *path, time_t crtime)
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 6276
:
4136
|
4137
| 5288