#1054030 tar: -P is "Don't strip leading slashes from file names when creating archives." but also disables stripping on extraxion

Package:
tar
Source:
tar
Description:
GNU version of the tar archiving utility
Submitter:
наб
Date:
2023-10-16 11:45:03 UTC
Severity:
normal
#1054030#5
Date:
2023-10-16 11:43:19 UTC
From:
To:
Dear Maintainer,

As expected:
	$ tar -cf ball.tar /bin/free
	tar: Removing leading `/' from member names
	$ tar -t < ball.tar
	bin/free

	$ tar -Pcf ball.tar /bin/free
	$ tar -t < ball.tar
	tar: Removing leading `/' from member names
	/bin/free

However:
	# tar -xvf /dev/vda
	tar: Removing leading `/' from member names
	/bin/free
	# free
	sh: free: command not found
	# ls bin/free
	bin/free

	# tar -Pxvf /dev/vda
	/bin/free
	# free
	free: error while loading shared libraries: libproc2.so.0: cannot open shared object file: No such file or directory

Best,
наб