git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
64e588f
)
Add helpful debug of DACL for errors on ACL access.
author
Jeremy Allison
<jra@samba.org>
Wed, 16 Dec 2009 18:09:11 +0000
(10:09 -0800)
committer
Jeremy Allison
<jra@samba.org>
Wed, 16 Dec 2009 18:09:11 +0000
(10:09 -0800)
Jeremy.
source3/smbd/open.c
patch
|
blob
|
history
diff --git
a/source3/smbd/open.c
b/source3/smbd/open.c
index 9dc8320b68415b308bfaa786cb5b881529b5ad10..120de0f21abcc59da61401f81ed49ebce7710ccc 100644
(file)
--- a/
source3/smbd/open.c
+++ b/
source3/smbd/open.c
@@
-102,8
+102,6
@@
NTSTATUS smbd_check_open_rights(struct connection_struct *conn,
access_mask,
access_granted);
access_mask,
access_granted);
- TALLOC_FREE(sd);
-
DEBUG(10,("smbd_check_open_rights: file %s requesting "
"0x%x returning 0x%x (%s)\n",
smb_fname_str_dbg(smb_fname),
DEBUG(10,("smbd_check_open_rights: file %s requesting "
"0x%x returning 0x%x (%s)\n",
smb_fname_str_dbg(smb_fname),
@@
-111,6
+109,16
@@
NTSTATUS smbd_check_open_rights(struct connection_struct *conn,
(unsigned int)*access_granted,
nt_errstr(status) ));
(unsigned int)*access_granted,
nt_errstr(status) ));
+ if (!NT_STATUS_IS_OK(status)) {
+ if (DEBUGLEVEL >= 10) {
+ DEBUG(10,("smbd_check_open_rights: acl for %s is:\n",
+ smb_fname_str_dbg(smb_fname) ));
+ NDR_PRINT_DEBUG(security_descriptor, sd);
+ }
+ }
+
+ TALLOC_FREE(sd);
+
return status;
}
return status;
}