git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af3b6be
)
r11482: Arrg. Can't believe this code was in this state. If you
author
Jeremy Allison
<jra@samba.org>
Wed, 2 Nov 2005 20:32:11 +0000
(20:32 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 16:05:18 +0000
(11:05 -0500)
don't initialize the mask then setting "special" access
gets set to *random* permissions !
Jeremy.
(This used to be commit
f1616911a858886da0a635a2f9b95d471215e84c
)
source3/utils/smbcacls.c
patch
|
blob
|
history
diff --git
a/source3/utils/smbcacls.c
b/source3/utils/smbcacls.c
index 26037f643eba8d880b6c616e5acf881282fceebc..217d80ed21aa0d04d7dee43584e08ef717430fa7 100644
(file)
--- a/
source3/utils/smbcacls.c
+++ b/
source3/utils/smbcacls.c
@@
-231,7
+231,9
@@
static BOOL parse_ace(SEC_ACE *ace, const char *orig_str)
char *p;
const char *cp;
fstring tok;
- unsigned atype, aflags, amask;
+ unsigned int atype = 0;
+ unsigned int aflags = 0;
+ unsigned int amask = 0;
DOM_SID sid;
SEC_ACCESS mask;
const struct perm_value *v;