Bug 1192784 - bsdtar --chroot fails to set file modes of directories
Summary: bsdtar --chroot fails to set file modes of directories
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Adrian Schröter
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-17 11:17 UTC by Andreas Schwab
Modified: 2021-11-17 11:17 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schwab 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/