From: Andrew Bartlett Date: Thu, 16 Aug 2012 03:44:01 +0000 (+1000) Subject: s3-smbd: Do not check no_acl_syscall_error(errno) after sys_acl_init() X-Git-Tag: tevent-0.9.17~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1157db293f5db7909f84f021581ddb916cfd8c7e;p=thirdparty%2Fsamba.git s3-smbd: Do not check no_acl_syscall_error(errno) after sys_acl_init() This is no longer a VFS call, so will no longer fail in this way. Andrew Bartlett --- diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c index c45003defd1..7e1bab51eae 100644 --- a/source3/smbd/posix_acls.c +++ b/source3/smbd/posix_acls.c @@ -2844,17 +2844,8 @@ static bool set_canon_ace_list(files_struct *fsp, #endif if (the_acl == NULL) { - - if (!no_acl_syscall_error(errno)) { - /* - * Only print this error message if we have some kind of ACL - * support that's not working. Otherwise we would always get this. - */ - DEBUG(0,("set_canon_ace_list: Unable to init %s ACL. (%s)\n", - default_ace ? "default" : "file", strerror(errno) )); - } - *pacl_set_support = False; - goto fail; + DEBUG(0, ("sys_acl_init failed to allocate an ACL\n")); + return false; } if( DEBUGLVL( 10 )) {