Subject: CVS commit: syssrc/sys
To: None <source-changes@netbsd.org>
From: Christos Zoulas <christos@netbsd.org>
List: source-changes
Date: 04/23/2002 18:11:26
Module Name: syssrc
Committed By: christos
Date: Tue Apr 23 15:11:26 UTC 2002
Modified Files:
syssrc/sys/kern: kern_descrip.c kern_exec.c
syssrc/sys/sys: filedesc.h
Log Message:
From OpenBSD, via FreeBSD: If a set{u,g}id binary is invoked with fd < 3
closed, open those fds to /dev/null.
XXX: This needs to be fixed in a better way. The kernel should not need to
know about /dev/null or special case 0, 1, 2.
To generate a diff of this commit:
cvs rdiff -r1.85 -r1.86 syssrc/sys/kern/kern_descrip.c
cvs rdiff -r1.151 -r1.152 syssrc/sys/kern/kern_exec.c
cvs rdiff -r1.23 -r1.24 syssrc/sys/sys/filedesc.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.