From f7767dbad2ebd49df63a11413ea8b95f92a390cd Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 29 Oct 2000 05:30:02 +0000 Subject: [PATCH] (NO_RECURSE_OPTION): Remove. (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 | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/tar.c b/src/tar.c index 213b277..e07a606 100644 --- 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; -- 2.44.0