[Midnight Commander] #4367: utar: device major/minor numbers lost when unpacking tarred dev directory

6 views
Skip to first unread message

Ticket System

unread,
Apr 6, 2022, 10:17:20 PM4/6/22
to alexs...@hotmail.com, mc-...@googlegroups.com
#4367: utar: device major/minor numbers lost when unpacking tarred dev directory
--------------------------------+-------------------------------
Reporter: Alex_S | Type: defect
Status: new | Priority: major
Milestone: Future Releases | Component: mc-core
Version: 4.8.27 | Keywords:
Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
--------------------------------+-------------------------------
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

2. From mc panel, select the test.tar and press F3. The internal viewer
correctly shows the major and minor numbers for the devices.

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

--
Ticket URL: <http://www.midnight-commander.org/ticket/4367>
Midnight Commander <https://midnight-commander.org>
Midnight Development Center

Ticket System

unread,
Apr 7, 2022, 3:25:12 AM4/7/22
to alexs...@hotmail.com, mc-...@googlegroups.com
#4367: utar: device major/minor numbers lost when unpacking tarred dev directory
--------------------------+---------------------------------------
Reporter: Alex_S | Owner:

Type: defect | Status: new
Priority: major | Milestone: Future Releases
Component: mc-vfs | Version: 4.8.27
Resolution: | Keywords:

Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
--------------------------+---------------------------------------
Changes (by andrew_b):

* component: mc-core => mc-vfs


Comment:

Cannot confirm. mc-4.8.28 works fine.

--
Ticket URL: <http://www.midnight-commander.org/ticket/4367#comment:1>

Ticket System

unread,
Apr 7, 2022, 3:25:16 AM4/7/22
to alexs...@hotmail.com, mc-...@googlegroups.com
#4367: utar: device major/minor numbers lost when unpacking tarred dev directory
--------------------------+---------------------------------------
Reporter: Alex_S | Owner:

Type: defect | Status: new
Priority: major | Milestone: Future Releases
Component: mc-vfs | Version: 4.8.27
Resolution: | Keywords:

Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
--------------------------+---------------------------------------
Description changed by andrew_b:

Old description:

New description:

--

--
Ticket URL: <http://www.midnight-commander.org/ticket/4367#comment:2>

Ticket System

unread,
May 13, 2022, 8:57:42 AM5/13/22
to alexs...@hotmail.com, mc-...@googlegroups.com
#4367: utar: device major/minor numbers lost when unpacking tarred dev directory
---------------------------+------------------------------
Reporter: Alex_S | Owner:
Type: defect | Status: closed
Priority: major | Milestone:
Component: mc-vfs | Version: 4.8.27
Resolution: worksforme | Keywords:

Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
---------------------------+------------------------------
Changes (by andrew_b):

* status: new => closed
* resolution: => worksforme
* milestone: Future Releases =>


--
Ticket URL: <http://www.midnight-commander.org/ticket/4367#comment:3>

Reply all
Reply to author
Forward
0 new messages