]> Dogcows Code - chaz/tar/commitdiff
*** empty log message ***
authorFrançois Pinard <pinard@iro.umontreal.ca>
Wed, 16 Nov 1994 03:03:34 +0000 (03:03 +0000)
committerFrançois Pinard <pinard@iro.umontreal.ca>
Wed, 16 Nov 1994 03:03:34 +0000 (03:03 +0000)
src/tar.c

index cec45120e2a6ad747f2cd61493c8f7baef23fcba..17a7f5fc02ab05aee3a9436ae9eb52110aeaa0a9 100644 (file)
--- a/src/tar.c
+++ b/src/tar.c
@@ -1117,7 +1117,7 @@ again:
       /* Regular expressions (shell globbing, actually). */
       if (nlp->regexp)
        {
-         if (fnmatch (nlp->name, p, FNM_TARPATH) == 0)
+         if (fnmatch (nlp->name, p, FNM_LEADING_DIR) == 0)
            {
              nlp->found = 1;   /* Remember it matched */
              if (f_startfile)
@@ -1236,7 +1236,7 @@ again:
       /* Regular expressions */
       if (nlp->regexp)
        {
-         if (fnmatch (nlp->name, p, FNM_TARPATH) == 0)
+         if (fnmatch (nlp->name, p, FNM_LEADING_DIR) == 0)
            return nlp;         /* We got a match */
          continue;
        }
@@ -1464,7 +1464,7 @@ check_exclude (name)
 
   for (n = 0; n < size_re_exclude; n++)
     {
-      if (fnmatch (re_exclude[n], name, FNM_TARPATH) == 0)
+      if (fnmatch (re_exclude[n], name, FNM_LEADING_DIR) == 0)
        return 1;
     }
   for (n = 0; n < size_exclude; n++)
This page took 0.027561 seconds and 4 git commands to generate.