summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-11-02 20:32:11 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:18 -0500
commit446463e9108155e34162bafcc85c2c20db946bc5 (patch)
tree1e99bcc8300bea9d0379af94d64487d6c4a69e37
parentaf3b6bec1f27ccbacde93b5dd54305c2fd40ef0e (diff)
downloadsamba-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)
-rw-r--r--source3/utils/smbcacls.c4
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;