summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-07-06 12:31:41 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-06 15:40:23 +0200
commitf9601a91805651963834e37e27800a74931468b7 (patch)
tree2823580fe03195d277f3bf142c19e7b674e401b9 /source3/lib
parent93ad34c4ad1a8c0e68eed0ddf69a332a71ba860c (diff)
downloadsamba-f9601a91805651963834e37e27800a74931468b7.tar.gz
samba-f9601a91805651963834e37e27800a74931468b7.tar.bz2
samba-f9601a91805651963834e37e27800a74931468b7.zip
s3:sharesec: return an error if get_share_security() returns NULL
This indicates an error, as it uses get_share_security_default() if no security descriptor is configured. Jeremy, please check. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Jul 6 15:40:23 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/sharesec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/sharesec.c b/source3/lib/sharesec.c
index 66e3401771..2f625351b2 100644
--- a/source3/lib/sharesec.c
+++ b/source3/lib/sharesec.c
@@ -426,7 +426,7 @@ bool share_access_check(const struct security_token *token,
if (pgranted != NULL) {
*pgranted = desired_access;
}
- return True;
+ return false;
}
status = se_access_check(psd, token, desired_access, &granted);