summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/kern_prot.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c
index 28444a1..3be52c8 100644
--- a/sys/kern/kern_prot.c
+++ b/sys/kern/kern_prot.c
@@ -909,8 +909,7 @@ issetugid(p, uap)
* a user without an exec - programs cannot know *everything*
* that libc *might* have put in their data segment.
*/
- if (p->p_flag & P_SUGID)
- return (1);
+ p->p_retval[0] = (p->p_flag & P_SUGID) ? 1 : 0;
return (0);
}
OpenPOWER on IntegriCloud