]> Dogcows Code - chaz/tar/commitdiff
Renamed strip_path_option to strip_components_option
authorSergey Poznyakoff <gray@gnu.org.ua>
Thu, 13 May 2004 08:24:32 +0000 (08:24 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Thu, 13 May 2004 08:24:32 +0000 (08:24 +0000)
src/common.h
src/extract.c

index e1fe91aa946e21de320d5483b71ea629875aa0b0..abcdbbca94541f3eeef89a56a129c0e164108b29 100644 (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;
 
index 815f7f6b208e3e5d06b3fda0f7b1c294e4fed369..0cb3e205b63c6f8a95d897a1c1ec90d526d4e90c 100644 (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 ();
This page took 0.025433 seconds and 4 git commands to generate.