Renamed strip_path_option to strip_components_option

This commit is contained in:
Sergey Poznyakoff
2004-05-13 08:24:32 +00:00
parent e1a4fea80d
commit a65779d558
2 changed files with 4 additions and 4 deletions

View File

@@ -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;

View File

@@ -618,9 +618,9 @@ extract_archive (void)
print_header (&current_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 ();