From: Björn Jacke Date: Sat, 2 Mar 2019 04:47:20 +0000 (+0100) Subject: replace/setxattr: correctly use our flags on Darwin X-Git-Tag: tevent-0.10.1~115 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3aea2c0f1f498fdb515cbd1d04b1ba3ce7f4cc3b;p=thirdparty%2Fsamba.git replace/setxattr: correctly use our flags on Darwin Signed-off-by: Bjoern Jacke Reviewed-by: Andrew Bartlett Autobuild-User(master): Björn Jacke Autobuild-Date(master): Thu Aug 29 17:10:32 UTC 2019 on sn-devel-184 --- diff --git a/lib/replace/xattr.c b/lib/replace/xattr.c index b7fbde2a2ca..d07dd2cc1e3 100644 --- a/lib/replace/xattr.c +++ b/lib/replace/xattr.c @@ -528,8 +528,7 @@ int rep_setxattr (const char *path, const char *name, const void *value, size_t #else /* So that we do not recursivly call this function */ #undef setxattr - int options = 0; - retval = setxattr(path, name, value, size, 0, options); + retval = setxattr(path, name, value, size, 0, flags); if (retval < 0) { if (errno == E2BIG) { errno = ENAMETOOLONG; @@ -636,8 +635,7 @@ int rep_fsetxattr (int filedes, const char *name, const void *value, size_t size #else /* So that we do not recursivly call this function */ #undef fsetxattr - int options = 0; - retval = fsetxattr(filedes, name, value, size, 0, options); + retval = fsetxattr(filedes, name, value, size, 0, flags); if (retval < 0) { if (errno == E2BIG) { errno = ENAMETOOLONG;