diff options
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_fork.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 0aa31ab..c3699b2 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -253,8 +253,8 @@ fork1(p1, flags, procp) * a nonprivileged user to exceed their current limit. */ ok = chgproccnt(p1->p_cred->p_uidinfo, 1, - p1->p_rlimit[RLIMIT_NPROC].rlim_cur); - if (uid != 0 && !ok) { + (uid != 0) ? p1->p_rlimit[RLIMIT_NPROC].rlim_cur : 0); + if (!ok) { /* * Back out the process count */ |