Ticket #4367 (new defect) — at Initial Version
utar: device major/minor numbers lost when unpacking tarred dev directory
Reported by: | Alex_S | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | mc-vfs | Version: | 4.8.27 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Branch state: | no branch | Votes for changeset: |
Description
Using Fedora 35 :
[root@fedora ttt]# uname -a
Linux fedora 5.16.18-200.fc35.x86_64 #1 SMP PREEMPT Mon Mar 28 14:10:07 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
[root@fedora ttt]# LC_MESSAGES=C mc -V
GNU Midnight Commander 4.8.27
Built with GLib 2.69.0
Built with S-Lang 2.3.2 with terminfo database
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm and Linux console
With internationalization support
With multiple codepages support
With ext2fs attributes support
Virtual File Systems:
cpiofs, tarfs, sfs, extfs, ftpfs, fish, smbfs
Data types:
char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;
Using tar :
[root@fedora ttt]# tar --version
tar (GNU tar) 1.34
How to reproduce the issue :
- Pack the /dev into a tarball: tar -cf test.tar /dev
- From mc panel, select the test.tar and press F3. The internal viewer correctly shows the major and minor numbers for the devices.
- Exit the viewer. Press Enter, inspect the tarball content. All the device numbers are zeros.
The test.tar can be untarred by tar - all the numbers will be correct.
But if you open the tarball in mc with Enter and copy the content to another panel - the extracted dev nodes will have the numbers zeroed.