From c967e8fae5babf6e337c0e2b85fc42eccfe9e4c4 Mon Sep 17 00:00:00 2001 From: Gregor Beck Date: Thu, 26 May 2011 10:15:56 +0200 Subject: s3:smbcacls: fix parsing of multiple flags Signed-off-by: Michael Adam --- source3/utils/smbcacls.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source3') 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; } } -- cgit