]> Dogcows Code - chaz/tar/blobdiff - src/common.h
--strip strips file system prefix too, and it counts adjacent
[chaz/tar] / src / common.h
index 9ec6e3f0cbcbb8ab0103d3c9c4c8fe56f0664be1..9e1ec68fb00e0b76699fc6d0d22aa62c7663f051 100644 (file)
@@ -230,6 +230,10 @@ 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
+   before extracting */
+GLOBAL size_t strip_path_elements;
+
 GLOBAL bool show_omitted_dirs_option;
 
 GLOBAL bool sparse_option;
@@ -563,6 +567,7 @@ char *name_from_list (void);
 void blank_name_list (void);
 char *new_name (const char *, const char *);
 char *safer_name_suffix (char const *, bool);
+size_t stripped_path_len (char const *file_name, size_t num);
 
 bool excluded_name (char const *);
 
This page took 0.022252 seconds and 4 git commands to generate.