|
Bugzilla – Full Text Bug Listing |
| Summary: | file ideintifier not functional | ||
|---|---|---|---|
| Product: | [openSUSE] SUSE LINUX 10.0 | Reporter: | Gábor Sári <sari.gabor> |
| Component: | Basesystem | Assignee: | Vladimir Nadvornik <nadvornik> |
| Status: | RESOLVED WORKSFORME | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Major | ||
| Priority: | P5 - None | CC: | snwint, werner |
| Version: | Beta 2 | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | All | ||
| Whiteboard: | |||
| Found By: | Other | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: | from file-4.14-2.i586.rpm from 10.0 beta2 | ||
please report openSUSE bugs against SUSE 10.0 not against the wiki. see http:// www.opensuse.org/index.php/Submit_a_bug The problem with file command is probably some conflict in magic file. If I remove everything except this from the magic file, it work OK: # CDROM Filesystems 32769 string CD001 ISO 9660 CD-ROM filesystem data # "application id" which appears to be used as a volume label >32808 string >\0 '%s' >34816 string \000CD001\001EL\ TORITO\ SPECIFICATION (bootable) 37633 string CD001 ISO 9660 CD-ROM filesystem data (raw 2352 byte sectors) 32776 string CDROM High Sierra CD-ROM filesystem data >file -m mymagic iso.iso iso.iso: ISO 9660 CD-ROM filesystem data 'SU100OSS.001 ' (bootable) Werner, can you please look into this? Checkmedia works for me. Can you please attach strace output? strace -o traceoutput checkmedia iso.iso If there is an output of the file command in the report (hopefully not deleted) I'd like to see this. Btw: what does
file -k iso.iso
report? The option -k force file not to
stop on the first report but keep going.
There is no other output from file iso.iso. Strace shows this:
write(1, "iso.iso: \n", 10)
> file -k iso.iso
iso.iso: \012- ISO 9660 CD-ROM filesystem data 'SU100OSS.001 '
(bootable)
strace shows:
write(1, "iso.iso: \\012- ISO 9660 CD-ROM f"..., 92) = 92
Hmmm ... 012 is newline. What character is the first of the image? Btw: I can not remove all entries im the magic file which uses characters before the offset 32769 ... IMHO you should use the `-k' option of file ... and Steffen may change the program checkmedia. Btw: there is no manual page for checkmedia nor tagmedia. No, but both have '--help' and there is a README in the doc directory. checkmedia is ok; the 'no iso' message basically means the file has a size of less than about 33k. The image starts with 32k of zeros. IMHO this should not match anything. 'no iso' is printed even if the file does not exist. I'd guess that this is the case here, let's wait for strace output. IMHO this could be a file shortage The problem is in magic file at line 2933. It contains: 0 long 0 From which /usr/share/misc/magic do you talk about? Please attach this file because if I do a /suse/werner> grep -E '^0[[:space:]]+long[[:space:]]+0' /usr/share/misc/magic I do not get such a line. Created attachment 47164 [details]
from file-4.14-2.i586.rpm from 10.0 beta2
Args ... this is a BUG in the magic description of the cracklib. Compare with /usr/share/cracklib/cracklib.magic Thorsten? Please provide a corrected magic entry. The line 0 long 0 is broken Use this one: # cracklib: file (1) magic for cracklib v2.7 0 lelong 0x70775631 Cracklib password index, little endian >4 long >0 (%i words) 0 belong 0x70775631 Cracklib password index, big endian >4 long >0 (%i words) This does not detect old, broken 64bit index files, but since I don't have one for testing, I cannot fix that. New submitted cracklib contains a fixed one, too. A better version: 0 lelong 0x70775631 Cracklib password index, little endian >4 lelong >0 (%i words) 0 belong 0x70775631 Cracklib password index, big endian >4 belong >0 (%i words) OK, I've put a new file package with a corrected magic entrie for cracklib. Thanks to Thorsten. There still may be bug in checkmedia or mkisofs. Please reopen this bug and attach strace output if you can reproduce it. Reopen to brake down the bug in checkmedia or mkisofs Gábor? We need more information about the bug. E.g. the strace output of mkisofs and checkmedia. no info on checkmedia or mkisofs bug -> worksforme |
openSUSE beta2 Creating the iso file these commands: mkisofs -v -V SU100OSS.001 -r -J -l -L -P "SuSE Linux AG" \ -b "boot/loader/isolinux.bin" -c "boot/loader/boot.cat" -no-emul-boot \ -boot-load-size 4 -boot-info-table -graft-points -o \ ../iso.iso . The file command say this: yellow:/ # file iso.iso iso.iso: And checkmedia say this: yellow: # checkmedia iso.iso not an iso