Hi,

On 9 February 2014 22:08, Magnus Holmgren <mag...@kibibyte.se> wrote:
> The first "if" should be a "while", shouldn't it? Otherwise we'll only skip
> over the first "../" if file_name starts with "../../", if I'm not mistaken.

That's handled by the while loop right after the if. Attached test
case contains an entry called ../../../empty-file
tar tf should print a warning message and list the full path, while
libtar should simply print it as 'empty-file'.

Cheers,
-- 
Raphael Geissert - Debian Developer
www.debian.org - get.debian.net

Attachment: triple-double-dot.tar
Description: Unix tar archive

Reply via email to