git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0b65b1
)
a leading / in a pattern now means "use a absolute path match". This
author
Andrew Tridgell
<tridge@samba.org>
Tue, 5 May 1998 11:23:51 +0000
(11:23 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Tue, 5 May 1998 11:23:51 +0000
(11:23 +0000)
allows you to exclude root directories without excluding
subdirectories of the same name.
exclude.c
patch
|
blob
|
history
diff --git
a/exclude.c
b/exclude.c
index 83c0b39bbd77d4e1941d4ee059a9f7a20e007c2d..7504f968d91fc0e9a2b84b39d41e44c456c49c75 100644
(file)
--- a/
exclude.c
+++ b/
exclude.c
@@
-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;