X-Git-Url: http://git.samba.org/samba.git/?p=gd%2Fsamba-autobuild%2F.git;a=blobdiff_plain;f=lib%2Freplace%2Fxattr.c;fp=lib%2Freplace%2Fxattr.c;h=d07dd2cc1e352111a3e1c1273dacb5cf8ca814c6;hp=b7fbde2a2cabc311632450eb64d4eb4624e8c517;hb=3aea2c0f1f498fdb515cbd1d04b1ba3ce7f4cc3b;hpb=56e0ffa11319eebbe0d8b07502aa3ec8971435d0 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;