bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] Stripping leading ../


From: Toby Peterson
Subject: [Bug-tar] Stripping leading ../
Date: Thu, 8 Jul 2004 21:09:56 -0700

I'm currently maintaining tar here at Apple, and I have a question about the behavior of tar. In 1.13.25, if a filename such as '../file' was specified without the -P option, it would give a warning like "Member names contain `..'", but it wouldn't actually do anything.

In 1.14, the warning is "Removing leading `../' from member names", and it does just that. This causes things to be compressed/extracted into unexpected locations!

Anyway, I'm simply wondering if this is expected behavior. I'm probably going to modify our build system to specify -P, but I'd like some confirmation that this is correct.

Thanks in advance.

Toby Peterson
Core OS
Apple Computer, Inc.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]