Bug 18443 - basename namespace
Summary: basename namespace
Status: NEW
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.21
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-21 15:41 UTC by Joseph Myers
Modified: 2015-06-05 09:36 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Myers 2015-05-21 15:41:29 UTC
The function basename is the GNU version, and __xpg_basename (with redirects in libgen.h) is the XPG version.  But under POSIX, functions not involving types defined in a header can be declared and used directly.  So (with appropriate symbol versions to support existing binaries) plain basename should get the XPG function and __gnu_basename should be the GNU version.