Bug 1111 - properly propagate return values in nss_compat
Summary: properly propagate return values in nss_compat
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.3.5
: P2 normal
Target Milestone: ---
Assignee: Roland McGrath
URL:
Keywords:
Depends on:
Blocks: libc236
  Show dependency treegraph
 
Reported: 2005-07-18 04:11 UTC by Roland McGrath
Modified: 2005-07-19 03:30 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roland McGrath 2005-07-18 04:11:56 UTC
This trunk patch should go into the 2.3 branch:

2005-07-05  Thorsten Kukuk  <kukuk@suse.de>

	* nis/nss_compat/compat-grp.c (internal_getgrgid_r): Check if NSS
	module provides getgrgid_r.
	(getgrnam_plusgroup): Preserve original return value.
	* nis/nss_compat/compat-pwd.c (getpwnam_plususer): Preserve
	original return value.
	* nis/nss_compat/compat-spwd.c (getspnam_plususer): Likewise.
Comment 1 Sourceware Commits 2005-07-18 04:12:43 UTC
Subject: Bug 1111

CVSROOT:	/cvs/glibc
Module name:	libc
Branch: 	glibc-2_3-branch
Changes by:	roland@sources.redhat.com	2005-07-18 04:12:38

Modified files:
	nis/nss_compat : compat-grp.c compat-pwd.c compat-spwd.c 

Log message:
	2005-07-05  Thorsten Kukuk  <kukuk@suse.de>
	
	[BZ #1111]
	* nis/nss_compat/compat-grp.c (internal_getgrgid_r): Check if NSS
	module provides getgrgid_r.
	(getgrnam_plusgroup): Preserve original return value.
	* nis/nss_compat/compat-pwd.c (getpwnam_plususer): Preserve
	original return value.
	* nis/nss_compat/compat-spwd.c (getspnam_plususer): Likewise.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/nis/nss_compat/compat-grp.c.diff?cvsroot=glibc&only_with_tag=glibc-2_3-branch&r1=1.29&r2=1.29.4.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/nis/nss_compat/compat-pwd.c.diff?cvsroot=glibc&only_with_tag=glibc-2_3-branch&r1=1.34&r2=1.34.4.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/nis/nss_compat/compat-spwd.c.diff?cvsroot=glibc&only_with_tag=glibc-2_3-branch&r1=1.27&r2=1.27.4.1

Comment 2 Roland McGrath 2005-07-19 03:30:29 UTC
This fix is now in the 2.3 branch as well as the trunk, and the problem should
be resolved as of the 2.3.6 release.