summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-11-30 16:56:35 -0800
committerJeremy Allison <jra@samba.org>2009-11-30 16:56:35 -0800
commit48f40793ae4190ebc9eec83924aeda9e3f16bf0d (patch)
treeb44c42340fd3f6a3eff2571e5b671a5d8cec51bb
parentbdc8c9d37ca478f74127628ab03bb68cd72bff63 (diff)
downloadsamba-48f40793ae4190ebc9eec83924aeda9e3f16bf0d.tar.gz
samba-48f40793ae4190ebc9eec83924aeda9e3f16bf0d.tar.bz2
samba-48f40793ae4190ebc9eec83924aeda9e3f16bf0d.zip
Fix DEBUG 0 -> DEBUG 10 (left over code).
Fix opendir status return if access denied. Jeremy.
-rw-r--r--source3/modules/vfs_acl_common.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/modules/vfs_acl_common.c b/source3/modules/vfs_acl_common.c
index 0919dcc8be..116211c9c0 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);
}