From: Sergey Poznyakoff Date: Tue, 3 Dec 2019 07:55:02 +0000 (+0200) Subject: Wildcards in exclude-vcs-ignore mode should not match slash X-Git-Tag: release_1_33~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=883cc555df870e45599fd5ed951843c332fcdafc;p=thirdparty%2Ftar.git Wildcards in exclude-vcs-ignore mode should not match slash * src/exclist.c (info_attach_exclist): Use the FNM_FILE_NAME flag. --- 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;