Skip to content

cannot copy file from iso created with mkisofs when Joliet without RockRidge used #2851

@mc-butler

Description

@mc-butler

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/2851
Reporter ctmp1 (gvlatyshev@….com)
Mentions gotar@….pl

mc creates file of zero length instead of extracting file from mkisofs-created iso images containing Joliet without RockRidge extension

Steps to reproduce:

  1. create iso image with Joliet but without RockRidge
mkisofs -J -o test.iso /etc/passwd
  1. run
/usr/libexec/mc/extfs.d/iso9660 copyout test.iso passwd passwd

Expected non-zero size passwd file, got file of zero size

The image created by mkisofs doesn't contain versions in filenames unlike images created by Nero 7 (windows). The bug was probably introduced with #2471

for mkisofs-generated image:

$ isoinfo -J  -l -i test.iso

Directory listing of /
d---------   0    0    0            2048 Jul 19 2012 [     29 02]  . 
d---------   0    0    0            2048 Jul 19 2012 [     29 02]  .. 
----------   0    0    0            2044 Jun 28 2012 [     30 00]  passwd

$ isoinfo -d -i test.iso
CD-ROM is in ISO 9660 format
System id: LINUX
Volume id: CDROM
Volume set id: 
Publisher id: 
Data preparer id: 
Application id: GENISOIMAGE ISO 9660/HFS FILESYSTEM CREATOR (C) 1993 E.YOUNGDALE (C) 1997-2006 J.PEARSON/J.SCHILLING (C) 2006-2007 CDRKIT TEAM
Copyright File id: 
Abstract File id: 
Bibliographic File id: 
Volume set size is: 1
Volume set sequence number is: 1
Logical block size is: 2048
Volume size is: 181
Joliet with UCS level 3 found
NO Rock Ridge present

for Nero 7-generated image:

$ isoinfo -J  -l -i nero7.iso

Directory listing of /
d---------   0    0    0            2048 Jul 19 2012 [     22 02]  . 
d---------   0    0    0            2048 Jul 19 2012 [     22 02]  .. 
----------   0    0    0           19794 Apr 17 2009 [     25 00]  xxx.pdb;1
$ isoinfo -d -i nero7.iso
CD-ROM is in ISO 9660 format
System id: 
Volume id: ________
Volume set id: 
Publisher id: 
Data preparer id: 
Application id: NERO BURNING ROM
Copyright File id: 
Abstract File id: 
Bibliographic File id: 
Volume set size is: 1
Volume set sequence number is: 1
Logical block size is: 2048
Volume size is: 600
Joliet with UCS level 3 found
NO Rock Ridge present

The simple solution would be replacement of iso9660 vfs with u7z. As bonus 7-zip can read iso images created by deepburner and winoncd 3.6 (they are Joliet with UCS level 1) and images created with mkisofs without -R and -J options at all

Software versions:
mc-4.8.4-0.git20120630.fc17.R.i386
genisoimage-1.1.11-10.fc17.i686

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: vfsVirtual File System supportprio: mediumHas the potential to affect progress

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions