diff options
author | Gregor Beck <gbeck@sernet.de> | 2011-05-26 10:15:56 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-05-30 17:42:27 +0200 |
commit | c967e8fae5babf6e337c0e2b85fc42eccfe9e4c4 (patch) | |
tree | 9936644091674fdd43b621cdefbe5866688063d8 /source3/utils | |
parent | 508e1607764d993c4d9a84793ffb7cfd22357f91 (diff) | |
download | samba-c967e8fae5babf6e337c0e2b85fc42eccfe9e4c4.tar.gz samba-c967e8fae5babf6e337c0e2b85fc42eccfe9e4c4.tar.bz2 samba-c967e8fae5babf6e337c0e2b85fc42eccfe9e4c4.zip |
s3:smbcacls: fix parsing of multiple flags
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/smbcacls.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c index 2fd9a53b5d..1d5789ddd4 100644 --- a/source3/utils/smbcacls.c +++ b/source3/utils/smbcacls.c @@ -360,7 +360,12 @@ static bool parse_ace_flags(const char *str, unsigned int *pflags) return false; } - if (*p != '|' && *p != '\0') { + switch (*p) { + case '|': + p++; + case '\0': + continue; + default: return false; } } |