diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1997-03-29 08:58:04 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1997-03-29 08:58:04 +0000 |
commit | 8b96c0a4899c3dc69b3e9927444a0f2547be534e (patch) | |
tree | e14ffb3efa81e0c8812a9c0be3f68c987e9718b2 /sys/kern | |
parent | c09cf573dfcaf3db742b281cc286198382d85116 (diff) |
Do return values from issetuid() correctly
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_prot.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c index ab4ae7b90ec..c7d18bf7ad8 100644 --- a/sys/kern/kern_prot.c +++ b/sys/kern/kern_prot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_prot.c,v 1.7 1996/10/27 04:51:37 tholo Exp $ */ +/* $OpenBSD: kern_prot.c,v 1.8 1997/03/29 08:58:03 tholo Exp $ */ /* $NetBSD: kern_prot.c,v 1.33 1996/02/09 18:59:42 christos Exp $ */ /* @@ -133,7 +133,9 @@ sys_issetugid(p, v, retval) register_t *retval; { if (p->p_flag & P_SUGIDEXEC) - return (1); + *retval = 1; + else + *retval = 0; return (0); } |