summaryrefslogtreecommitdiff
path: root/source3/lib/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r--source3/lib/util.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 297eeb4d03..b7651f8929 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -2451,6 +2451,12 @@ char *parent_dirname(const char *path)
BOOL ms_has_wild(const char *s)
{
char c;
+
+ if (lp_posix_pathnames()) {
+ /* With posix pathnames no characters are wild. */
+ return False;
+ }
+
while ((c = *s++)) {
switch (c) {
case '*':