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:
208d6ad
)
Improve var ref.
author
Wayne Davison
<wayne@opencoder.net>
Wed, 14 Sep 2022 03:55:26 +0000
(20:55 -0700)
committer
Wayne Davison
<wayne@opencoder.net>
Wed, 14 Sep 2022 03:55:58 +0000
(20:55 -0700)
exclude.c
patch
|
blob
|
history
diff --git
a/exclude.c
b/exclude.c
index 4022e8246eee614c44988c447cf33a2dafba3d12..4bf85cb37002369cc3103260ce7528ced57fe337 100644
(file)
--- a/
exclude.c
+++ b/
exclude.c
@@
-508,7
+508,7
@@
void add_implied_include(const char *arg, int skip_daemon_module)
filter_rule *R_rule = new0(filter_rule);
R_rule->rflags = FILTRULE_INCLUDE | FILTRULE_DIRECTORY;
/* Check if our sub-path has wildcards or escaped backslashes */
- if (saw_wild && strpbrk(
rule->pattern
, "*[?\\"))
+ if (saw_wild && strpbrk(
new_pat
, "*[?\\"))
R_rule->rflags |= FILTRULE_WILD;
R_rule->pattern = strdup(new_pat);
R_rule->u.slash_cnt = slash_cnt;