summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/sharesec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/sharesec.c b/source3/lib/sharesec.c
index 0c06d7bbee..66e3401771 100644
--- a/source3/lib/sharesec.c
+++ b/source3/lib/sharesec.c
@@ -423,6 +423,9 @@ bool share_access_check(const struct security_token *token,
psd = get_share_security(talloc_tos(), sharename, &sd_size);
if (!psd) {
+ if (pgranted != NULL) {
+ *pgranted = desired_access;
+ }
return True;
}