[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-tar] tar 1.24: --strip-components=2 done to early.
From: |
Christian Volkmann |
Subject: |
[Bug-tar] tar 1.24: --strip-components=2 done to early. |
Date: |
Thu, 28 Oct 2010 14:39:47 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101026 SUSE/2.0.10-1.1 SeaMonkey/2.0.10 |
Hi all,
tar 1.24 seems to do the --strip-components first, before a match was done.
This breaks older usages.
Best regards,
Christian
How to reproduce:
------------------
mkdir -p strip1/strip2/strip/
touch strip1/strip2/strip/a
tar cf strip.tar strip1
tar --strip-components=2 -xvf strip.tar strip1
Results:
tar 1.24:
> mkdir -p strip1/strip2/strip/
> touch strip1/strip2/strip/a
> tar cf strip.tar strip1
> tar --strip-components=2 -xvf strip.tar strip1
tar: strip1: Not found in archive
tar: Exiting with failure status due to previous errors
tar 1.23:
> mkdir -p strip1/strip2/strip/
> touch strip1/strip2/strip/a
> tar cf strip.tar strip1
> tar --strip-components=2 -xvf strip.tar strip1
strip1/strip2/strip/
strip1/strip2/strip/a
The information included in this e-mail and any files transmitted with it is
strictly confidential and may be privileged or otherwise protected from
disclosure. If you are not the intended recipient, please notify the sender
immediately by e-mail and delete this e-mail as well as any attachment from
your system. If you are not the intended recipient you are not authorized to
use and/or copy this message and/or attachment and/or disclose the contents to
any other person.
- [Bug-tar] tar 1.24: --strip-components=2 done to early.,
Christian Volkmann <=