tech-userlevel archive

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

PR 44498 should probably be closed



Hello,

PR 44498 is regarding tar(1)'s dependence on getcwd(3).
This only exists when /bin/pax is called as "tar", which is only true of /bin/tar when building with MKBSDTAR set to "no" in order to not use bsdtar from libarchive. The default setting of MKBSDTAR has been "yes" since 2019:
--
revision 1.1149
date: 2019-07-24 04:28:29 -0500;  author: roy;  state: Exp;  lines: +3 -2;  commitid: sK95mlqaQycdihwB;
branches:  1.1149.2;
MKBSDTAR now defaults to yes

Starting to see some modern archives not opening, it's time to make them work!
--

Testing:
--
$ mkdir -p test1/test2
$ chmod 111 test1
$ cd test1/test2
$ tar tfv -
^C
$ tar --version
bsdtar 3.7.4 - libarchive 3.7.4 zlib/1.2.13 liblzma/5.2.4 bz2lib/1.0.8
$ ln /bin/pax ~/tar
$ ~/tar -tfv -
tar: Cannot get working directory (Permission denied)
$
--

So while the issue does still exist, it requires trying to use an obsolete tar(1).

It probably makes more sense to just close this PR.

Thanks.
J



Home | Main Index | Thread Index | Old Index