1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

replace/setxattr: correctly use our flags on Darwin

Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>

Autobuild-User(master): Björn Jacke <bjacke@samba.org>
Autobuild-Date(master): Thu Aug 29 17:10:32 UTC 2019 on sn-devel-184
This commit is contained in:
Björn Jacke
2019-03-02 05:47:20 +01:00
committed by Bjoern Jacke
parent 56e0ffa113
commit 3aea2c0f1f

View File

@ -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;