git.samba.org
/
ambi
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7a4210
)
s3: util: Remove unneeded strequal() call. Convert to simple character check.
author
Jeremy Allison
<jra@samba.org>
Fri, 11 Nov 2016 18:22:52 +0000
(10:22 -0800)
committer
Andreas 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
patch
|
blob
|
history
diff --git
a/source3/lib/util.c
b/source3/lib/util.c
index 1af05cd0df826460694f02a1b0384a6646dc5530..7e3f455882c15f0376367875345959b44393aa82 100644
(file)
--- a/
source3/lib/util.c
+++ b/
source3/lib/util.c
@@
-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;
}