Bug 38093 - basename() isn't portable
basename() isn't portable
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2001-04-27 10:33 EDT by Joe Orton
Modified: 2007-04-18 12:32 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-05-06 10:06:58 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Joe Orton 2001-04-27 10:33:34 EDT
RPM assumes basename() in libc is the GNU-style basename(). Single Unix
allows basename() to be argument-modifying and other such rubbish.

This breaks build/parsePrep.c on HP-UX 10, and probably elsewhere (some
SunOS's have an argument-modifying basename() too I think).

Easy fix: unconditionally #include "misc/basename.c" in stubs.c.
Comment 1 Joe Orton 2001-04-30 05:57:06 EDT
Sorry, scratch the easy fix, that breaks the build on Tru64.

Proper fix coming up...
Comment 2 Jeff Johnson 2001-05-06 10:06:53 EDT
Still looking for the "proper fix" ...
Comment 3 Jeff Johnson 2002-06-21 15:46:29 EDT
Closed for lack of input.

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