bug-tar
[Top][All Lists]
Advanced

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

'--strip-components=NUMBER' option does work as expected


From: Dedeco Balaco
Subject: '--strip-components=NUMBER' option does work as expected
Date: Tue, 27 Apr 2021 10:58:27 -0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

Hello,

the tar option '--strip-components=NUMBER' does not work as expected. I
had a tar file, created in FreeBSD version of tar, which contained (for
a bit of confusion when creating the tar file) "/../" inside of all files.

The files contained were like:

home/myuser/../myuser/etc1
home/myuser/../myuser/etc2
home/myuser/../myuser/etc3
.
.
.

I tried to extract the files, in my Debian OS, with the option
'--strip-components=3'm for the example given here. tar still complained
about '..' contained in files, although they should have been stripped
before knowing the path where the file should be extracted to. I
consider this a problem. The manpage was read.

More detailed discussion happened here:

https://www.linuxquestions.org/questions/linux-software-2/me-tar-command-%3D-stupid-result%3B-4175694243/

Regards



reply via email to

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