Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sys/sys Pull up revision 1.24 (via patch, requested by ...



details:   https://anonhg.NetBSD.org/src/rev/5e5524dcd627
branches:  netbsd-1-5
changeset: 493091:5e5524dcd627
user:      he <he%NetBSD.org@localhost>
date:      Fri Apr 26 17:52:15 2002 +0000

description:
Pull up revision 1.24 (via patch, requested by christos):
  If a set{u,g}id binary is invoked with fd < 3 closed, open those
  file desciptors to /dev/null.

diffstat:

 sys/sys/filedesc.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r ac1434b40e39 -r 5e5524dcd627 sys/sys/filedesc.h
--- a/sys/sys/filedesc.h        Fri Apr 26 17:51:39 2002 +0000
+++ b/sys/sys/filedesc.h        Fri Apr 26 17:52:15 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: filedesc.h,v 1.19.4.1 2001/06/10 18:23:18 he Exp $     */
+/*     $NetBSD: filedesc.h,v 1.19.4.2 2002/04/26 17:52:15 he Exp $     */
 
 /*
  * Copyright (c) 1990, 1993
@@ -114,8 +114,9 @@
 void   fdclear __P((struct proc *p));
 void   fdfree __P((struct proc *p));
 void   fdremove __P((struct filedesc *, int));
-int    fdrelease __P((struct proc *p, int));
+int    fdrelease __P((struct proc *, int));
 void   fdcloseexec __P((struct proc *));
+int    fdcheckstd __P((struct proc*));
 
 struct cwdinfo *cwdinit __P((struct proc *));
 void   cwdshare __P((struct proc *, struct proc *));



Home | Main Index | Thread Index | Old Index