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.

Reply via email to