git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dfc898
)
s3:sharesec: also initialize pgranted if get_share_security() returns NULL
author
Stefan Metzmacher
<metze@samba.org>
Tue, 5 Jul 2011 14:59:41 +0000
(16:59 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Wed, 6 Jul 2011 10:54:30 +0000
(12:54 +0200)
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Jul 6 12:54:30 CEST 2011 on sn-devel-104
source3/lib/sharesec.c
patch
|
blob
|
history
diff --git
a/source3/lib/sharesec.c
b/source3/lib/sharesec.c
index 0c06d7bbeee339f90e81b85eb061bfa634137b34..66e3401771625a54b4b0d10f216652ea8e0f674a 100644
(file)
--- 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;
}