From 510434c7bcff6ca99d87f5184acb9cb614d3a995 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Tue, 16 Oct 2007 05:11:08 +0000 Subject: [PATCH] Changed 2 uses of XATTR_NOFOLLOW to FSOPT_NOFOLLOW. --- osx-create-time.diff | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osx-create-time.diff b/osx-create-time.diff index c490ef8..5fa24cb 100644 --- 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; -+ 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); @@ -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; -+ 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) -- 2.34.1