]> git.ipfire.org Git - thirdparty/tar.git/commitdiff
Wildcards in exclude-vcs-ignore mode should not match slash
authorSergey Poznyakoff <gray@gnu.org>
Tue, 3 Dec 2019 07:55:02 +0000 (09:55 +0200)
committerSergey Poznyakoff <gray@gnu.org>
Tue, 3 Dec 2019 07:55:02 +0000 (09:55 +0200)
* src/exclist.c (info_attach_exclist): Use the FNM_FILE_NAME flag.

src/exclist.c

index 288f3be8b1b3a99e38d61fb8c394af64fbd51f98..9406f32fb4faf1db7d2ab8d50bc0adad46a39cf1 100644 (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;