Bug 748230 - Fails with "invalid type 0 in mconvert()" on shell scripts
Summary: Fails with "invalid type 0 in mconvert()" on shell scripts
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: file
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Kaluža
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-23 13:06 UTC by paolo borelli
Modified: 2011-10-23 13:58 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-23 13:58:08 UTC
Type: ---


Attachments (Terms of Use)

Description paolo borelli 2011-10-23 13:06:07 UTC
For instance

[paolo@bishop dcv]$ printf '#!/bin/sh\necho test\n' > test.sh
[paolo@bishop dcv]$ chmod +x test.sh 
[paolo@bishop dcv]$ ./test.sh 
test
[paolo@bishop dcv]$ file test.sh 
test.sh: ERROR: line 6: invalid type 0 in mconvert()POSIX shell script, ASCII text executable

But also testing on scripts provieded by the system fails

[paolo@bishop ~]$ file /usr/bin/createrepo
/usr/bin/createrepo: ERROR: line 6: invalid type 0 in mconvert()POSIX shell script, ASCII text executable

Comment 1 paolo borelli 2011-10-23 13:58:08 UTC
After a bit of fiddling it the problem was solved reinstalling file-libs.

I am closing the bug, but I still wonder how it broke in the first place.


Note You need to log in before you can comment on or make changes to this bug.