#845709 genisoimage: Miss-reads configuration file .genisoimagerc

Package:
genisoimage
Source:
cdrkit
Description:
Creates ISO-9660 CD-ROM filesystem images
Submitter:
Richard Betham
Date:
2017-11-27 19:03:04 UTC
Severity:
normal
#845709#5
Date:
2016-11-25 21:49:52 UTC
From:
To:
Dear Maintainer,

The configuration file ./.genisoimagerc contains:
COPY=home/rb/private.txt
PUBL=Richard Betham
PREP=Richard Betham
SYSI=Linux/Debian

I gave the command:
genisoimage -o test.iso ~/standards/

I expected the computer to read the .genisoimagerc file,
read the directory tree and produce an iso image file.
I hoped for no errors.

 got an error message:
Using ".genisoimagerc"
.genisoimagerc:1: field name 'OPY=' unknown
.genisoimagerc:2: field name 'UBL=' unknown
.genisoimagerc:3: field name 'REP=' unknown
.genisoimagerc:4: field name 'YSI=' unknown
I: -input-charset not specified, using utf-8 (detected in locale
settings)
Total translation table size: 0
Total rockridge attributes bytes: 0
Total directory bytes: 10396
Path table size(bytes): 94
Max brk space used 21000
505 extents written (0 MB)

genisoimage ignored the contents of ./.genisoimagerc ,
except for giving the above error message.
I tested for this by the command:
isoinfo -d -i test.iso
.

Please alter the code so that the ./.genisoimage file will be read
correctly.

Thank you very much for maintaining the package genisoimage.

with best regards from
Richard Betham

#845709#10
Date:
2016-11-30 12:55:14 UTC
From:
To:
I attach hereto a copy of the configuration file .genisoimagerc,
in case the EOL string is odd and relevant to the misreading.

with best regards from
Richard Betham

#845709#15
Date:
2017-05-01 14:00:19 UTC
From:
To:
Hi,

i can reproduce this with genisoimage 1.1.11 as of Jessie and with
older 1.1.10.

The problem is in genisoimage/genisoimage.c with this hasty loop:

                /*
                 * The name should begin in the left margin.  Make sure it is
                 * in upper case.  Stop when we see white space or a comment.
                 */
                name = p;
                while (*p && (isalpha((unsigned char) *p) || *p == '_'))
                        *p++ = toupper((unsigned char) *p);

When it is done, the first five characters of the line "PUBL=...", are
changed to "UBL==...".

A fix would be to replace the while-loop by a for-loop which separates p++
from *p :

                for (; *p && (isalpha((unsigned char) *p) || *p == '_'); p++)
                        *p = toupper((unsigned char) *p);


Have a nice day :)

Thomas

#845709#20
Date:
2017-11-27 11:08:57 UTC
From:
To:
I have installed genisoimage version 9:1.1.11-2,
this correctly reads the  .genisoimagerc file.
I have also installed 9:1.1.11-2 of wodim and cdrkit-doc.

However I do not use these to generate any El Torito boot image.

I hope that this helps.

Genisoimage is very useful, however, it would be even better if it
were to correctly read the .genisoimagerc file, as stated in the man
pages

with best regards from
Richard Betham