From: Jeremy Allison Date: Tue, 1 Dec 2009 00:56:35 +0000 (-0800) Subject: Fix DEBUG 0 -> DEBUG 10 (left over code). X-Git-Tag: samba-4.0.0alpha9~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=48f40793ae4190ebc9eec83924aeda9e3f16bf0d;p=thirdparty%2Fsamba.git Fix DEBUG 0 -> DEBUG 10 (left over code). Fix opendir status return if access denied. Jeremy. --- diff --git a/source3/modules/vfs_acl_common.c b/source3/modules/vfs_acl_common.c index 0919dcc8be6..116211c9c0a 100644 --- a/source3/modules/vfs_acl_common.c +++ b/source3/modules/vfs_acl_common.c @@ -512,7 +512,7 @@ static NTSTATUS check_parent_acl_common(vfs_handle_struct *handle, DACL_SECURITY_INFORMATION), &parent_desc); if (!NT_STATUS_IS_OK(status)) { - DEBUG(0,("check_parent_acl_common: SMB_VFS_GET_NT_ACL " + DEBUG(10,("check_parent_acl_common: SMB_VFS_GET_NT_ACL " "on directory %s for " "path %s returned %s\n", parent_name, @@ -525,7 +525,7 @@ static NTSTATUS check_parent_acl_common(vfs_handle_struct *handle, access_mask, &access_granted); if(!NT_STATUS_IS_OK(status)) { - DEBUG(0,("check_parent_acl_common: access check " + DEBUG(10,("check_parent_acl_common: access check " "on directory %s for " "path %s for mask 0x%x returned %s\n", parent_name, @@ -783,6 +783,8 @@ static SMB_STRUCT_DIR *opendir_acl_common(vfs_handle_struct *handle, NTSTATUS status = check_parent_acl_common(handle, fname, SEC_DIR_LIST); if (!NT_STATUS_IS_OK(status)) { + errno = map_errno_from_nt_status(status); + return NULL; } return SMB_VFS_NEXT_OPENDIR(handle, fname, mask, attr); }