diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2003-08-16 21:34:31 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2003-08-16 21:34:31 +0000 |
commit | a8fa472f01cc66f8cb978a07a415d4918fa8c6ed (patch) | |
tree | dc03cf0ab4e23236a9209dd8302a2fe6aa64113d /sys/compat/osf1/osf1_prot.c | |
parent | d254acb29c78606cb14b0b451241146df9e75d1b (diff) |
missed suser. thanks naddy@
Diffstat (limited to 'sys/compat/osf1/osf1_prot.c')
-rw-r--r-- | sys/compat/osf1/osf1_prot.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/osf1/osf1_prot.c b/sys/compat/osf1/osf1_prot.c index 9385ab48f24..f37abf0add1 100644 --- a/sys/compat/osf1/osf1_prot.c +++ b/sys/compat/osf1/osf1_prot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: osf1_prot.c,v 1.1 2000/08/04 15:47:55 ericj Exp $ */ +/* $OpenBSD: osf1_prot.c,v 1.2 2003/08/16 21:34:30 tedu Exp $ */ /* $NetBSD: osf1_prot.c,v 1.2 1999/05/05 01:51:35 cgd Exp $ */ /* @@ -86,7 +86,7 @@ osf1_sys_setgid(p, v, retval) gid_t gid = SCARG(uap, gid); int error; - if ((error = suser(pc->pc_ucred, &p->p_acflag)) != 0 && + if ((error = suser(p, 0)) != 0 && gid != pc->p_rgid && gid != pc->p_svgid) return (error); @@ -125,7 +125,7 @@ osf1_sys_setuid(p, v, retval) uid_t uid = SCARG(uap, uid); int error; - if ((error = suser(pc->pc_ucred, &p->p_acflag)) != 0 && + if ((error = suser(p, 0)) != 0 && uid != pc->p_ruid && uid != pc->p_svuid) return (error); |