freebsd-src/lib/libc
David Greenman 3ab30975ab The +@netgroup/-@netgroup NIS password overrides can fail in
some cases due to a subtle bug. Specifically, if you override
	an NIS user's shell, /usr/bin/login and /usr/bin/su (and probably
	other commands) can end up with bogus data for the pw_shell
	member of the passwd structure *if* the do an endpwent(),
	thereby preventing logins.

	This happpens because the text fields in the passwd structure
	(pw_name, pw_passwd, pw_gecos, pw_class, pw_dir and pw_shell)
	are returned to the calling program as pointers to dycamically
	allocated buffers, rather than pointers to static buffers as
	they should be. Once endpwent() is called, the dynamic buffers
	are free()ed, which invalidates the data returned by the
	library functions.

Note: Bill promises a more elegant solution in post-2.0.5R. This fix
	is only a work-around.

Submitted by:	Bill Paul
1995-06-02 11:23:24 +00:00
..
compat-43 This commit was manufactured by cvs2svn to create branch 'RELENG_2_0_5'. 1995-05-30 08:29:08 +00:00
db Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
gen The +@netgroup/-@netgroup NIS password overrides can fail in 1995-06-02 11:23:24 +00:00
gmon Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
i386 This commit was manufactured by cvs2svn to create branch 'RELENG_2_0_5'. 1995-05-30 08:29:08 +00:00
locale This commit was manufactured by cvs2svn to create branch 'RELENG_2_0_5'. 1995-05-30 08:29:08 +00:00
net This commit was manufactured by cvs2svn to create branch 'RELENG_2_0_5'. 1995-05-30 08:29:08 +00:00
nls Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
quad Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
regex Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
rpc Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
stdio Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
stdlib This commit was manufactured by cvs2svn to create branch 'RELENG_2_0_5'. 1995-05-30 08:29:08 +00:00
stdtime This commit was manufactured by cvs2svn to create branch 'RELENG_2_0_5'. 1995-05-30 08:29:08 +00:00
string This commit was manufactured by cvs2svn to create branch 'RELENG_2_0_5'. 1995-05-30 08:29:08 +00:00
sys Add a missing link from the setpgid manpage to the setpgrp manpage. 1995-05-27 04:17:04 +00:00
xdr Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
yp Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
Makefile Add nls include to Makefile. 1995-03-30 12:46:36 +00:00