mirror of
https://git.savannah.gnu.org/git/tar.git
synced 2026-09-06 08:16:54 +00:00
Fix --exclude-ignore option.
This fixes https://savannah.gnu.org/bugs/?64387. * src/exclist.c (info_attach_exclist): Always use file->flags. (exclude_vcs_ignores): Pass flags from struct vcs_ignore_file to excfile_add. * tests/exclude19.at: New test. * tests/exclude20.at: New test. * tests/Makefile.am: Add new tests. * tests/testsuite.at: Add new tests.
This commit is contained in:
+2
-3
@@ -118,8 +118,7 @@ info_attach_exclist (struct tar_stat_info *dir)
|
||||
|
||||
ent = xmalloc (sizeof (*ent));
|
||||
ent->excluded = ex;
|
||||
ent->flags = file->flags == EXCL_DEFAULT
|
||||
? file->flags : vcsfile->flags;
|
||||
ent->flags = file->flags;
|
||||
ent->prev = tail;
|
||||
ent->next = NULL;
|
||||
|
||||
@@ -333,5 +332,5 @@ exclude_vcs_ignores (void)
|
||||
struct vcs_ignore_file *p;
|
||||
|
||||
for (p = vcs_ignore_files; p->filename; p++)
|
||||
excfile_add (p->filename, EXCL_DEFAULT);
|
||||
excfile_add (p->filename, p->flags);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user