]> Dogcows Code - chaz/tar/commitdiff
(NO_RECURSE_OPTION): Remove.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 29 Oct 2000 05:30:02 +0000 (05:30 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 29 Oct 2000 05:30:02 +0000 (05:30 +0000)
(long_options): Have getopt set the --no-recursion flag.
(decode_options): Initialize recursion_option to FNM_LEADING_DIR.
Remove case for NO_RECURSE_OPTION.

src/tar.c

index 213b277921f1f17fdaf2188de16ec7040df3be32..e07a6060af4ae847a81573801065941434d348d0 100644 (file)
--- a/src/tar.c
+++ b/src/tar.c
@@ -132,7 +132,6 @@ enum
   GROUP_OPTION,
   MODE_OPTION,
   NEWER_MTIME_OPTION,
-  NO_RECURSE_OPTION,
   NULL_OPTION,
   OVERWRITE_OPTION,
   OWNER_OPTION,
@@ -216,7 +215,7 @@ static struct option long_options[] =
   {"newer", required_argument, 0, 'N'},
   {"newer-mtime", required_argument, 0, NEWER_MTIME_OPTION},
   {"null", no_argument, 0, NULL_OPTION},
-  {"no-recursion", no_argument, 0, NO_RECURSE_OPTION},
+  {"no-recursion", no_argument, &recursion_option, 0},
   {"no-same-owner", no_argument, &same_owner_option, -1},
   {"no-same-permissions", no_argument, &same_permissions_option, -1},
   {"numeric-owner", no_argument, &numeric_owner_option, 1},
@@ -489,6 +488,7 @@ decode_options (int argc, char **argv)
   excluded_with_slash = new_exclude ();
   excluded_without_slash = new_exclude ();
   newer_mtime_option = TYPE_MINIMUM (time_t);
+  recursion_option = FNM_LEADING_DIR;
 
   owner_option = -1;
   group_option = -1;
@@ -885,10 +885,6 @@ decode_options (int argc, char **argv)
          xalloc_die ();
        break;
 
-      case NO_RECURSE_OPTION:
-       no_recurse_option = 1;
-       break;
-
       case NULL_OPTION:
        filename_terminator = '\0';
        break;
This page took 0.024569 seconds and 4 git commands to generate.