Bug 129393 - Genromfs uses getopt() improperly
Summary: Genromfs uses getopt() improperly
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: genromfs
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: FC3Target
TreeView+ depends on / blocked
 
Reported: 2004-08-07 19:58 UTC by W. Michael Petullo
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version: 0.5.1-1
Clone Of:
Environment:
Last Closed: 2004-09-01 10:31:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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