]> Dogcows Code - chaz/tar/blobdiff - src/tar.c
*** empty log message ***
[chaz/tar] / src / tar.c
index 4d2c4b800762357a76fc664ef211637685c22943..17a7f5fc02ab05aee3a9436ae9eb52110aeaa0a9 100644 (file)
--- a/src/tar.c
+++ b/src/tar.c
@@ -75,6 +75,8 @@ extern void diff_archive ();
 extern void create_archive ();
 extern void update_archive ();
 extern void junk_archive ();
+extern void init_volume_number ();
+extern void closeout_volume_number ();
 
 /* JF */
 extern time_t get_date ();
@@ -668,7 +670,7 @@ describe ()
 -c, --create           create a new archive\n\
 -d, --diff,\n\
     --compare          find differences between archive and file system\n\
---delete                       delete from the archive (not for use on mag tapes!)\n\
+--delete               delete from the archive (not for use on mag tapes!)\n\
 -r, --append           append files to the end of an archive\n\
 -t, --list             list the contents of an archive\n\
 -u, --update           only append files that are newer than copy in archive\n\
@@ -696,7 +698,7 @@ Other options:\n\
 -i, --ignore-zeros     ignore blocks of zeros in archive (normally mean EOF)\n\
 --ignore-failed-read   don't exit with non-zero status on unreadable files\n\
 -k, --keep-old-files   keep existing files; don't overwrite them from archive\n\
--K, --starting-file FILE       begin at FILE in the archive\n\
+-K, --starting-file F  begin at file F in the archive\n\
 -l, --one-file-system  stay in local file system when creating an archive\n\
 -L, --tape-length LENGTH change tapes after writing LENGTH\n\
 ", stdout);                    /* KLUDGE */
@@ -704,7 +706,7 @@ Other options:\n\
 -m, --modification-time        don't extract file modified time\n\
 -M, --multi-volume     create/list/extract multi-volume archive\n\
 -N, --after-date DATE,\n\
-    --newer DATE               only store files newer than DATE\n\
+    --newer DATE       only store files newer than DATE\n\
 -o, --old-archive,\n\
     --portability      write a V7 format archive, rather than ANSI format\n\
 -O, --to-stdout                extract files to standard output\n\
@@ -722,9 +724,9 @@ Other options:\n\
 -S, --sparse           handle sparse files efficiently\n\
 -T, --files-from F     get names to extract or create from file F\n\
 --null                 -T reads null-terminated names, disable -C\n\
---totals                       print total bytes written with --create\n\
+--totals               print total bytes written with --create\n\
 -v, --verbose          verbosely list files processed\n\
--V, --label NAME               create archive with volume name NAME\n\
+-V, --label NAME       create archive with volume name NAME\n\
 --version              print tar program version number\n\
 -w, --interactive,\n\
     --confirmation     ask for confirmation for every action\n\
@@ -1115,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)
@@ -1234,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;
        }
@@ -1462,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.026022 seconds and 4 git commands to generate.