mirror of
https://github.com/samba-team/samba.git
synced 2025-07-05 04:59:08 +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:
committed by
Andreas Schneider
parent
b7a4210e28
commit
076963c23e
@ -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);
|
TALLOC_FREE(ctx);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user