[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: '--strip-components=NUMBER' option does work as expected
From: |
Sergey Poznyakoff |
Subject: |
Re: '--strip-components=NUMBER' option does work as expected |
Date: |
Tue, 27 Apr 2021 17:26:09 +0200 |
Dedeco Balaco <dedeco.balaco@yahoo.com> ha escrit:
> the tar option '--strip-components=NUMBER' does not work as expected.
Actually, it does. Absolute file name checking[1] occurs before file
name transformation[2]. I that's not needed, use the -P option, e.g.:
-P --strip-components=3
Regards,
Sergey
[1] https://www.gnu.org/software/tar/manual/html_node/absolute.html
[2] https://www.gnu.org/software/tar/manual/html_node/transform.html