Matt McCutchen's Web Site
/
rsync
/
rsync-patches.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
03edfc6
)
Changed 2 uses of XATTR_NOFOLLOW to FSOPT_NOFOLLOW.
author
Wayne Davison
<wayned@samba.org>
Tue, 16 Oct 2007 05:11:08 +0000
(
05:11
+0000)
committer
Wayne Davison
<wayned@samba.org>
Tue, 16 Oct 2007 05:11:08 +0000
(
05:11
+0000)
osx-create-time.diff
patch
|
blob
|
blame
|
history
diff --git
a/osx-create-time.diff
b/osx-create-time.diff
index
c490ef8
..
5fa24cb
100644
(file)
--- a/
osx-create-time.diff
+++ b/
osx-create-time.diff
@@
-38,7
+38,7
@@
To use this patch, run these commands for a successful build:
+ memset(&attrList, 0, sizeof attrList);
+ attrList.bitmapcount = ATTR_BIT_MAP_COUNT;
+ attrList.commonattr = ATTR_CMN_CRTIME;
+ memset(&attrList, 0, sizeof attrList);
+ attrList.bitmapcount = ATTR_BIT_MAP_COUNT;
+ attrList.commonattr = ATTR_CMN_CRTIME;
-+ if (getattrlist(path, &attrList, &attrBuf, sizeof attrBuf,
XATTR
_NOFOLLOW) < 0)
++ if (getattrlist(path, &attrList, &attrBuf, sizeof attrBuf,
FSOPT
_NOFOLLOW) < 0)
+ return -1;
+
+ SIVAL(buf, 0, attrBuf.date.tv_sec);
+ return -1;
+
+ SIVAL(buf, 0, attrBuf.date.tv_sec);
@@
-69,7
+69,7
@@
To use this patch, run these commands for a successful build:
+ memset(&attrList, 0, sizeof attrList);
+ attrList.bitmapcount = ATTR_BIT_MAP_COUNT;
+ attrList.commonattr = ATTR_CMN_CRTIME;
+ memset(&attrList, 0, sizeof attrList);
+ attrList.bitmapcount = ATTR_BIT_MAP_COUNT;
+ attrList.commonattr = ATTR_CMN_CRTIME;
-+ return setattrlist(path, &attrList, &date, sizeof date,
XATTR
_NOFOLLOW);
++ return setattrlist(path, &attrList, &date, sizeof date,
FSOPT
_NOFOLLOW);
+}
+
ssize_t sys_lgetxattr(const char *path, const char *name, void *value, size_t size)
+}
+
ssize_t sys_lgetxattr(const char *path, const char *name, void *value, size_t size)