Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 2905 - lib/rpmrc.c uses FILENAME_MAX which is 14 on HPUX
Summary: lib/rpmrc.c uses FILENAME_MAX which is 14 on HPUX
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm
Version: 6.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jay Turner
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-05-18 08:59 UTC by benedict
Modified: 2015-01-07 23:37 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 1999-05-18 14:12:20 UTC


Attachments (Terms of Use)

Description benedict 1999-05-18 08:59:18 UTC
On HPUX 10.20 you will see the following:

$ rm
f234567890123456789012345678901234567890123456789012345678901234567890
$ touch
f234567890123456789012345678901234567890123456789012345678901234567890
$ rpm
--rcfile=f234567890123456789012345678901234567890123456789012345678901234567890
Unable to open f234567890123456 for reading: No such file or
directory.

This is due to the code in lib/rpmrc.c:548:

	char fn[FILENAME_MAX+1];

because /usr/include/stdio.h defines FILENAME_MAX to 14 !!

Comment 1 Jeff Johnson 1999-05-18 14:12:59 UTC
Fixed in rpm. Thanks for reporting.


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