Renamed strip_path_option to strip_components_option
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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 ();
|
||||
|
||||
Reference in New Issue
Block a user