From 481ca7c67ccbe18c7773d2ddb27d7ebb389e4276 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 30 Apr 2000 14:37:57 +0000 Subject: handle the special rule of *.* for old style listings when old_list is true (This used to be commit cdf4c4c812086d6e7cdc0436f5e31c420dcfb3e5) --- source3/utils/masktest.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- cgit