From f9601a91805651963834e37e27800a74931468b7 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 6 Jul 2011 12:31:41 +0200 Subject: 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 Autobuild-Date: Wed Jul 6 15:40:23 CEST 2011 on sn-devel-104 --- source3/lib/sharesec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit