diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2019-12-03 09:55:02 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2019-12-03 09:55:02 +0200 |
commit | 883cc555df870e45599fd5ed951843c332fcdafc (patch) | |
tree | d51430d068396643b3fbe21d0b6ed61de962a0bb | |
parent | e1005b385d560acd09df78901633af693a89858c (diff) | |
download | tar-883cc555df870e45599fd5ed951843c332fcdafc.tar.gz |
Wildcards in exclude-vcs-ignore mode should not match slash
* src/exclist.c (info_attach_exclist): Use the FNM_FILE_NAME flag.
-rw-r--r-- | src/exclist.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/exclist.c b/src/exclist.c index 288f3be8..9406f32f 100644 --- a/src/exclist.c +++ b/src/exclist.c @@ -104,7 +104,8 @@ info_attach_exclist (struct tar_stat_info *dir) vcsfile->data = vcsfile->initfn (vcsfile->data); if (add_exclude_fp (vcsfile->addfn, ex, fp, - EXCLUDE_WILDCARDS|EXCLUDE_ANCHORED, '\n', + FNM_FILE_NAME|EXCLUDE_WILDCARDS|EXCLUDE_ANCHORED, + '\n', vcsfile->data)) { int e = errno; |