summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-04-30 14:37:57 +0000
committerAndrew Tridgell <tridge@samba.org>2000-04-30 14:37:57 +0000
commit481ca7c67ccbe18c7773d2ddb27d7ebb389e4276 (patch)
tree3eebd3967a54bb978f0a4bc3a20fca40475a3284 /source3
parentcb6327cd2d221ab0248a802d8717ea669463845e (diff)
downloadsamba-481ca7c67ccbe18c7773d2ddb27d7ebb389e4276.tar.gz
samba-481ca7c67ccbe18c7773d2ddb27d7ebb389e4276.tar.bz2
samba-481ca7c67ccbe18c7773d2ddb27d7ebb389e4276.zip
handle the special rule of *.* for old style listings when old_list is
true (This used to be commit cdf4c4c812086d6e7cdc0436f5e31c420dcfb3e5)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/masktest.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/utils/masktest.c b/source3/utils/masktest.c
index 45c113f112..d8afbddf98 100644
--- a/source3/utils/masktest.c
+++ b/source3/utils/masktest.c
@@ -39,6 +39,9 @@ static BOOL reg_match_one(char *pattern, char *file)
if (strcmp(file,"..") == 0) file = ".";
if (strcmp(pattern,".") == 0) return False;
+ /* oh what a weird world this is */
+ if (old_list && strcmp(pattern, "*.*") == 0) return True;
+
return ms_fnmatch(pattern, file)==0;
}