diff options
author | 1997-02-18 00:11:47 +0000 | |
---|---|---|
committer | 1997-02-18 00:11:47 +0000 | |
commit | 55a8d395752b70ea69cc028802b9c907018f7933 (patch) | |
tree | d6021d2f04d1d0d4d0ee2a2ded50a7681b71570c /sys/kern/kern_fork.c | |
parent | whoops, typo (diff) | |
download | wireguard-openbsd-55a8d395752b70ea69cc028802b9c907018f7933.tar.xz wireguard-openbsd-55a8d395752b70ea69cc028802b9c907018f7933.zip |
cp P_SUGID/P_SUGIDEXEC to child, doh; half from freebsd
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r-- | sys/kern/kern_fork.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 269ea30f407..a89382a82ab 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_fork.c,v 1.6 1996/09/02 01:22:05 tholo Exp $ */ +/* $OpenBSD: kern_fork.c,v 1.7 1997/02/18 00:11:47 deraadt Exp $ */ /* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */ /* @@ -228,6 +228,7 @@ again: p2->p_emul = p1->p_emul; if (p1->p_flag & P_PROFIL) startprofclock(p2); + p2->p_flag |= (p1->p_flag & (P_SUGID | P_SUGIDEXEC)); MALLOC(p2->p_cred, struct pcred *, sizeof(struct pcred), M_SUBPROC, M_WAITOK); bcopy(p1->p_cred, p2->p_cred, sizeof(*p2->p_cred)); |