s3: util: Remove unneeded strequal() call. Convert to simple character check.
authorJeremy Allison <jra@samba.org>
Fri, 11 Nov 2016 18:22:52 +0000 (10:22 -0800)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 16 Nov 2016 11:41:09 +0000 (12:41 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12419

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/lib/util.c

index 1af05cd0df826460694f02a1b0384a6646dc5530..7e3f455882c15f0376367875345959b44393aa82 100644 (file)
@@ -1942,7 +1942,7 @@ bool unix_wild_match(const char *pattern, const char *string)
                }
        }
 
-       if (strequal(p2,"*")) {
+       if (p2[0] == '*' && p2[1] == '\0') {
                TALLOC_FREE(ctx);
                return true;
        }