Ticket #4367 (closed defect: worksforme)

Opened 2 years ago

Last modified 22 months ago

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 (last modified by andrew_b) (diff)

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 :

  1. Pack the /dev into a tarball: tar -cf test.tar /dev
  1. From mc panel, select the test.tar and press F3. The internal viewer correctly shows the major and minor numbers for the devices.

  1. 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.

Change History

comment:1 Changed 2 years ago by andrew_b

  • Component changed from mc-core to mc-vfs

Cannot confirm. mc-4.8.28 works fine.

Last edited 2 years ago by andrew_b (previous) (diff)

comment:2 Changed 2 years ago by andrew_b

  • Description modified (diff)

comment:3 Changed 22 months ago by andrew_b

  • Status changed from new to closed
  • Resolution set to worksforme
  • Milestone Future Releases deleted
Note: See TracTickets for help on using tickets.