]> Dogcows Code - chaz/tar/commit
Detect tarbombs while extracting
authorConnor Behan <connor.behan@gmail.com>
Mon, 27 Jan 2014 12:42:09 +0000 (14:42 +0200)
committerSergey Poznyakoff <gray@gnu.org.ua>
Mon, 27 Jan 2014 12:42:09 +0000 (14:42 +0200)
commit2af87fa2776c8125a587a9b0c2c4fae3bf921ff7
treebf40d41788020b4ba5696fb8edb733c439940c69
parent95a51b93d0d22d3a037cd6f303cca68a2d6c66dd
Detect tarbombs while extracting

* src/common.h (one_top_level_option): New global.
(one_top_level): New global.
* src/extract.c (extr_init): If one_top_level_option is set, determine
the name one_top_level that might have to be prepended.
(extract_archive): If one_top_level_option is set, prepend one_top_level
to all names that don't already start with it.
* src/tar.c (ONE_TOP_LEVEL_OPTION): New contant.
(options): New option --one-top-level.
(parse_opt): Handle this option.
(decode_options): Make it conflict with --absolute-names.
NEWS
doc/tar.texi
src/common.h
src/extract.c
src/tar.c
This page took 0.018564 seconds and 4 git commands to generate.