瀏覽代碼

Renamed strip_path_option to strip_components_option

Sergey Poznyakoff 21 年之前
父節點
當前提交
a65779d558
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 2 2
      src/common.h
  2. 2 2
      src/extract.c

+ 2 - 2
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;
 

+ 2 - 2
src/extract.c

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