From: Sergey Poznyakoff Date: Thu, 13 May 2004 08:24:32 +0000 (+0000) Subject: Renamed strip_path_option to strip_components_option X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=a65779d55837d7164425f4fd3b9cefe88d250706;p=chaz%2Ftar Renamed strip_path_option to strip_components_option --- diff --git a/src/common.h b/src/common.h index e1fe91a..abcdbbc 100644 --- a/src/common.h +++ b/src/common.h @@ -251,9 +251,9 @@ GLOBAL int same_owner_option; /* If positive, preserve permissions when extracting. */ GLOBAL int same_permissions_option; -/* When set, strip the given number of path elements from the file name +/* When set, strip the given number of file name components from the file name before extracting */ -GLOBAL size_t strip_path_elements; +GLOBAL size_t strip_name_components; GLOBAL bool show_omitted_dirs_option; diff --git a/src/extract.c b/src/extract.c index 815f7f6..0cb3e20 100644 --- a/src/extract.c +++ b/src/extract.c @@ -618,9 +618,9 @@ extract_archive (void) print_header (¤t_stat_info, -1); file_name = safer_name_suffix (current_stat_info.file_name, false); - if (strip_path_elements) + if (strip_name_components) { - size_t prefix_len = stripped_prefix_len (file_name, strip_path_elements); + size_t prefix_len = stripped_prefix_len (file_name, strip_name_components); if (prefix_len == (size_t) -1) { skip_member ();