s3-smbd: Do not check no_acl_syscall_error(errno) after sys_acl_init()
authorAndrew Bartlett <abartlet@samba.org>
Thu, 16 Aug 2012 03:44:01 +0000 (13:44 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 16 Aug 2012 05:25:39 +0000 (15:25 +1000)
This is no longer a VFS call, so will no longer fail in this way.

Andrew Bartlett

source3/smbd/posix_acls.c

index c45003defd1302447b734fe7b2932681a5c42aa2..7e1bab51eae849d44332b4b9f62b939368d56748 100644 (file)
@@ -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 )) {