Bug 129393

Summary: Genromfs uses getopt() improperly
Product: [Fedora] Fedora Reporter: W. Michael Petullo <redhat>
Component: genromfsAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideKeywords: EasyFix
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 0.5.1-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-09-01 10:31:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 123268    

Description W. Michael Petullo 2004-08-07 19:58:28 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.7)
Gecko/20040625 Epiphany/1.2.6

Description of problem:
Genromfs does not execute properly on my PowerPC-based system.  The
getopt function returns an int.  However, in genromfs.c the value
returned by getopt is assigned to a variable of type char.

Changing "char c;" to "int c;" fixes things.

Version-Release number of selected component (if applicable):
genromfs-0.3-17

How reproducible:
Always

Steps to Reproduce:
Try to run genromfs and notice that it does not execute properly. 
Further inspection determines that the problem is in genromfs's option
parsing code.
    

Additional info:

Triage->EasyFix

Comment 1 Jakub Jelinek 2004-09-01 10:31:24 UTC
Fixed by upgrading to 0.5.1.