diff options
author | Jeremy Allison <jra@samba.org> | 2005-11-02 20:32:11 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:05:18 -0500 |
commit | 446463e9108155e34162bafcc85c2c20db946bc5 (patch) | |
tree | 1e99bcc8300bea9d0379af94d64487d6c4a69e37 /source3 | |
parent | af3b6bec1f27ccbacde93b5dd54305c2fd40ef0e (diff) | |
download | samba-446463e9108155e34162bafcc85c2c20db946bc5.tar.gz samba-446463e9108155e34162bafcc85c2c20db946bc5.tar.bz2 samba-446463e9108155e34162bafcc85c2c20db946bc5.zip |
r11482: Arrg. Can't believe this code was in this state. If you
don't initialize the mask then setting "special" access
gets set to *random* permissions !
Jeremy.
(This used to be commit f1616911a858886da0a635a2f9b95d471215e84c)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/smbcacls.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c index 26037f643e..217d80ed21 100644 --- 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; |