Bug 118549 - genhdlist barfs when rpm filename >= 80 characters
Summary: genhdlist barfs when rpm filename >= 80 characters
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 1
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact: Mike McLean
URL:
Whiteboard: FC3
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-03-17 17:29 UTC by Chris Rouch
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-05-06 21:42:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Chris Rouch 2004-03-17 17:29:28 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6)
Gecko/20040211 Firefox/0.8

Description of problem:
genhdlist allocates an 80 character buffer (line 468). 

If an rpm filename is too long, genhdlist will split this filename, e.g. 

lirc-kmdl-2.4.22-1.2174.nptl_37.rhfc1.at-0.7.0-25_cvs20040311.rhfc1.at.i686.rpm
becomes
lirc-kmdl-2.4.22-1.2174.nptl_37.rhfc1.at-0.7.0-25_cvs20040311.rhfc1.at.i686.rp
 
and 'm'. 'm' has the wrong format so genhdlist bails out.

I guess all official rpms are too short to trigger this.

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

anaconda-runtime-9.2-2

How reproducible:
Always

Steps to Reproduce:
1. Add
lirc-kmdl-2.4.22-1.2174.nptl_37.rhfc1.at-0.7.0-25_cvs20040311.rhfc1.at.i686.rpm
to comps.xml
2. e.g. genhdlist --withnumbers --productpath Fedora --fileorder
/a/yarrow/cdrom/pkgorder.txt /a/yarrow/cdrom-disc?
3. 

    

Actual Results:  genhdlist: FATAL ERROR -> "m" is not a package name!!

Expected Results:  genhdlist completes without errors

Additional info:

Comment 1 Jeremy Katz 2004-05-06 21:42:56 UTC
Actually, fixed in CVS


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