From: Sergey Poznyakoff Date: Tue, 6 Dec 2005 23:14:56 +0000 (+0000) Subject: (sys_exec_info_script): Update delaration X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=4669306854d37349344d89117e8d2ff0239a3b26;p=chaz%2Ftar (sys_exec_info_script): Update delaration (restrict_option): New global --- diff --git a/src/common.h b/src/common.h index 2d48dbb..673cfa0 100644 --- a/src/common.h +++ b/src/common.h @@ -254,6 +254,9 @@ GLOBAL bool touch_option; GLOBAL char *to_command_option; GLOBAL bool ignore_command_error_option; +/* Restrict some potentially harmful tar options */ +GLOBAL bool restrict_option; + /* Return true if the extracted files are not being written to disk */ #define EXTRACT_OVER_PIPE (to_stdout_option || to_command_option) @@ -647,7 +650,7 @@ void xheader_string_end (char const *keyword); bool xheader_keyword_deleted_p (const char *kw); char *xheader_format_name (struct tar_stat_info *st, const char *fmt, size_t n); - + /* Module system.c */ void sys_detect_dev_null_output (void); @@ -666,7 +669,7 @@ size_t sys_write_archive_buffer (void); bool sys_get_archive_stat (void); int sys_exec_command (char *file_name, int typechar, struct tar_stat_info *st); void sys_wait_command (void); -int sys_exec_info_script (const char *archive_name, int volume_number); +int sys_exec_info_script (const char **archive_name, int volume_number); /* Module compare.c */ void report_difference (struct tar_stat_info *st, const char *message, ...);