Line
Link Here
|
|
-- |
|
|
1 |
src/extract.c | 8 ++++++++ |
|
src/extract.c | 8 ++++++++ |
2 |
2 files changed, 15 insertions(+), 1 deletion(-) |
1 |
2 files changed, 15 insertions(+), 1 deletion(-) |
3 |
-- a/src/extract.c |
2 |
++ b/src/extract.c |
Lines 1629-1640
extract_archive (void)
Link Here
|
1629 |
{ |
1629 |
{ |
1630 |
char typeflag; |
1630 |
char typeflag; |
1631 |
tar_extractor_t fun; |
1631 |
tar_extractor_t fun; |
|
|
1632 |
bool skip_dotdot_name; |
1632 |
|
1633 |
|
1633 |
fatal_exit_hook = extract_finish; |
1634 |
fatal_exit_hook = extract_finish; |
1634 |
|
1635 |
|
1635 |
set_next_block_after (current_header); |
1636 |
set_next_block_after (current_header); |
1636 |
|
1637 |
|
|
|
1638 |
skip_dotdot_name = (!absolute_names_option |
1639 |
&& contains_dot_dot (current_stat_info.orig_file_name)); |
1640 |
if (skip_dotdot_name) |
1641 |
ERROR ((0, 0, _("%s: Member name contains '..'"), |
1642 |
quotearg_colon (current_stat_info.orig_file_name))); |
1643 |
|
1637 |
if (!current_stat_info.file_name[0] |
1644 |
if (!current_stat_info.file_name[0] |
|
|
1645 |
|| skip_dotdot_name |
1638 |
|| (interactive_option |
1646 |
|| (interactive_option |
1639 |
&& !confirm ("extract", current_stat_info.file_name))) |
1647 |
&& !confirm ("extract", current_stat_info.file_name))) |
1640 |
{ |
1648 |
{ |