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/18528] grp.h endgrent, getgrent namespace


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

--- 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  b400fdefc71ccc2a118ddfa78d3658d3ea3af7a2 (commit)
      from  5371d99e8766f25864ddf20fb0866e57fc0b7991 (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=b400fdefc71ccc2a118ddfa78d3658d3ea3af7a2

commit b400fdefc71ccc2a118ddfa78d3658d3ea3af7a2
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Fri Jun 12 22:29:19 2015 +0000

    Fix grp.h endgrent, getgrent namespace (bug 18528).

    grp.h declares endgrent and getgrent if __USE_XOPEN2K8 (i.e. 2008
    edition of POSIX, non-XSI).  However, the 2013 Technical Corrigendum
    corrected the grp.h specification to XSI-shade these functions as in
    previous editions (see <http://austingroupbugs.net/view.php?id=24>),
    so they should not be declared for non-XSI POSIX.  This patch corrects
    the conditions - using __USE_MISC || __USE_XOPEN_EXTENDED to match
    setgrent - and the conform/ test expectations for this header, thereby
    fixing the conform tests for this header for XPG3 (where the
    expectations were wrong) and the linknamespace tests for it for
    POSIX2008 (where the header bug meant it was wrongly considered a
    problem for endgrent to bring in a reference to setgrent).

    Tested for x86_64 and x86 (testsuite, and that installed stripped
    shared libraries are unchanged by the patch).

        [BZ #18528]
        * grp/grp.h (endgrent): Condition on [__USE_MISC ||
        __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
        __USE_XOPEN2K8].
        (getgrent): Likewise.
        * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
        expect.
        [XPG3 || POSIX2008] (endgrent): Likewise.
        [XPG3] (setgrent): Likewise.
        * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
        variable.
        (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.

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

Summary of changes:
 ChangeLog               |   13 +++++++++++++
 NEWS                    |    2 +-
 conform/Makefile        |    2 --
 conform/data/grp.h-data |    4 +---
 grp/grp.h               |    2 --
 5 files changed, 15 insertions(+), 8 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]