summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-07-04 17:02:34 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-05 13:28:03 +0200
commit1c022d2e414607633323e65abbc63bb3aeaaa6a4 (patch)
tree9ed522cee9c45097e7e96869b0b066eafbd025ce /source3/lib
parentfe8fe384f35fcf827630061ceda553ae8867f4ad (diff)
downloadsamba-1c022d2e414607633323e65abbc63bb3aeaaa6a4.tar.gz
samba-1c022d2e414607633323e65abbc63bb3aeaaa6a4.tar.bz2
samba-1c022d2e414607633323e65abbc63bb3aeaaa6a4.zip
s3: Return "granted" from share_access_check
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/sharesec.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source3/lib/sharesec.c b/source3/lib/sharesec.c
index ed971a97a6..0c06d7bbee 100644
--- a/source3/lib/sharesec.c
+++ b/source3/lib/sharesec.c
@@ -410,8 +410,10 @@ bool delete_share_security(const char *servicename)
Can this user access with share with the required permissions ?
********************************************************************/
-bool share_access_check(const struct security_token *token, const char *sharename,
- uint32 desired_access)
+bool share_access_check(const struct security_token *token,
+ const char *sharename,
+ uint32 desired_access,
+ uint32_t *pgranted)
{
uint32 granted;
NTSTATUS status;
@@ -428,6 +430,10 @@ bool share_access_check(const struct security_token *token, const char *sharenam
TALLOC_FREE(psd);
+ if (pgranted != NULL) {
+ *pgranted = granted;
+ }
+
return NT_STATUS_IS_OK(status);
}