a leading / in a pattern now means "use a absolute path match". This

allows you to exclude root directories without excluding
subdirectories of the same name.
This commit is contained in:
Andrew Tridgell
1998-05-05 11:23:51 +00:00
parent a0b65b1805
commit 0944563eb9

View File

@@ -43,6 +43,8 @@ static int check_one_exclude(char *name,char *pattern)
if (!name[0]) return 0;
if (*pattern == '/' && *name != '/') pattern++;
if (is_regex(pattern)) {
if (fnmatch(pattern, name, 0) == 0)
return 1;