Wildcards in exclude-vcs-ignore mode should not match slash

* src/exclist.c (info_attach_exclist): Use the FNM_FILE_NAME flag.
This commit is contained in:
Sergey Poznyakoff
2019-12-03 09:55:02 +02:00
parent e1005b385d
commit 883cc555df

View File

@@ -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;