]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
posix_acls: use SMB_VFS_SYS_ACL_SET_FD() in set_unix_posix_default_acl()
authorRalph Boehme <slow@samba.org>
Mon, 14 Dec 2020 10:21:45 +0000 (11:21 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 17 Dec 2020 18:56:29 +0000 (18:56 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/posix_acls.c

index 7d9cd8e538f68000d5ccc21fa7e1b55d70329a95..569f75e3811043fdec429567bd33ba1729fff7e7 100644 (file)
@@ -4340,10 +4340,9 @@ NTSTATUS set_unix_posix_default_acl(connection_struct *conn,
                return map_nt_error_from_unix(errno);
        }
 
-       ret = SMB_VFS_SYS_ACL_SET_FILE(conn,
-                                       fsp->fsp_name,
-                                       SMB_ACL_TYPE_DEFAULT,
-                                       def_acl);
+       ret = SMB_VFS_SYS_ACL_SET_FD(fsp,
+                                    SMB_ACL_TYPE_DEFAULT,
+                                    def_acl);
        if (ret == -1) {
                status = map_nt_error_from_unix(errno);
                DBG_INFO("acl_set_file failed on directory %s (%s)\n",