Bugzilla – Bug 1192784
bsdtar --chroot fails to set file modes of directories
Last modified: 2021-11-17 11:17:44 UTC
bsdtar now depends on /proc when setting modes of extracted directories. This fails with --chroot, since /proc is not mounted. This breaks unpacking preinstall images in the OBS build script. # mkdir -m 1777 tmp # bsdtar -cf tmp.tar tmp # bsdtar -tvf tmp.tar drwxrwxrwt 0 root root 0 Nov 17 12:12 tmp/ # rmdir tmp # bsdtar -xvvf tmp.tar --chroot x drwxrwxrwt 0 root root 0 Nov 17 11:12 tmp/ # ls -ld tmp drwxr-xr-x 2 root root 4096 Nov 17 12:12 tmp/