This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/18444] pathconf basename namespace


https://sourceware.org/bugzilla/show_bug.cgi?id=18444

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  cf06a4e3579d834c3330184c4ff127c98bc00fcc (commit)
      from  7348824c39c45d401f62f724ecad4e3479180578 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=cf06a4e3579d834c3330184c4ff127c98bc00fcc

commit cf06a4e3579d834c3330184c4ff127c98bc00fcc
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Fri May 22 17:09:36 2015 +0000

    Fix pathconf basename namespace (bug 18444).

    pathconf (sysdeps/unix/sysv/linux/pathconf.c) uses basename.  But
    pathconf is in POSIX back to 1990 while basename is only reserved with
    external linkage in those standards including XPG functions.  This
    patch fixes this namespace issue in the usual way, renaming basename
    to __basename and making it into a weak alias.

    Tested for x86_64 and x86 (testsuite, and that disassembly of
    installed shared libraries is unchanged by the patch).

        [BZ #18444]
        * string/basename.c (basename): Rename to __basename and define as
        weak alias of __basename.  Use libc_hidden_weak.
        * include/string.h (__basename): Declare.  Use libc_hidden_proto.
        * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
        __basename instead of basename.
        * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
        Remove variable.
        (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                          |   12 ++++++++++++
 NEWS                               |    2 +-
 conform/Makefile                   |    2 --
 include/string.h                   |    2 ++
 string/basename.c                  |    6 ++++--
 sysdeps/unix/sysv/linux/pathconf.c |    2 +-
 6 files changed, 20 insertions(+), 6 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]