summaryrefslogtreecommitdiff
path: root/sys/kern/kern_prot.c
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1996-05-30 01:21:50 +0000
committerDavid Greenman <dg@FreeBSD.org>1996-05-30 01:21:50 +0000
commitcd73303c45bb6e18046b71e3675856499c414f07 (patch)
tree603e355f7edb105259489d17e5043c896ec3d4a9 /sys/kern/kern_prot.c
parent2d8e94a4a4270b00496e7f8c2b13751eafb18b89 (diff)
Notes
Diffstat (limited to 'sys/kern/kern_prot.c')
-rw-r--r--sys/kern/kern_prot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c
index 3ed70889f3f7..e779a097e77e 100644
--- a/sys/kern/kern_prot.c
+++ b/sys/kern/kern_prot.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_prot.c 8.6 (Berkeley) 1/21/94
- * $Id: kern_prot.c,v 1.15 1995/11/11 06:53:08 bde Exp $
+ * $Id: kern_prot.c,v 1.16 1995/11/12 06:42:58 bde Exp $
*/
/*
@@ -277,7 +277,7 @@ setpgid(curp, uap, retval)
if (uap->pid != 0 && uap->pid != curp->p_pid) {
if ((targp = pfind(uap->pid)) == 0 || !inferior(targp))
return (ESRCH);
- if (targp->p_session != curp->p_session)
+ if (targp->p_pgrp == NULL || targp->p_session != curp->p_session)
return (EPERM);
if (targp->p_flag & P_EXEC)
return (EACCES);