Bug 748230

Summary: Fails with "invalid type 0 in mconvert()" on shell scripts
Product: [Fedora] Fedora Reporter: paolo borelli <pborelli>
Component: fileAssignee: Jan Kaluža <jkaluza>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: jkaluza
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-23 13:58:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.