Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: Christos Zoulas <christos@netbsd.org>
List: source-changes
Date: 10/17/2000 23:53:48
Module Name:	syssrc
Committed By:	christos
Date:		Tue Oct 17 20:53:47 UTC 2000

Modified Files:
	syssrc/sys/kern: kern_prot.c

Log Message:
Don't set P_SUGID if the calls to set{e,}{u,g}id(), setreuid(),
setgroups() did not result in actual changes. This has the nice
side effect that we don't needlesly allocate new credential and
resource limit data structures.

This is so that non setuid programs that call seteuid(getuid()),
don't end up setting P_SUGID, resulting in broken behavior [i.e.
non setuid ssh, doesn't read ~/.hostaliases...].

This is a good candidate for a pullup, if someone reviews it.


To generate a diff of this commit:
cvs rdiff -r1.58 -r1.59 syssrc/sys/kern/kern_prot.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.