1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s3: util: Remove unneeded strequal() call. Convert to simple character check.

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>
This commit is contained in:
Jeremy Allison 2016-11-11 10:22:52 -08:00 committed by Andreas Schneider
parent b7a4210e28
commit 076963c23e

View 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;
}