From owner-freebsd-stable Thu Sep 14 15:42: 2 2000 Delivered-To: freebsd-stable@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 893D037B423 for ; Thu, 14 Sep 2000 15:42:00 -0700 (PDT) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e8EMft106952; Thu, 14 Sep 2000 15:41:55 -0700 (PDT) Date: Thu, 14 Sep 2000 15:41:55 -0700 From: Alfred Perlstein To: Don Lewis Cc: Vivek Khera , stable@FreeBSD.ORG Subject: Re: negative proccnt Message-ID: <20000914154155.Z12231@fw.wintelcom.net> References: <14785.12095.673316.885249@onceler.kciLink.com> <200009142046.NAA26980@salsa.gv.tsc.tdk.com> <14785.15822.898420.198946@onceler.kciLink.com> <200009142207.PAA27239@salsa.gv.tsc.tdk.com> <200009142222.PAA27308@salsa.gv.tsc.tdk.com> <20000914152635.X12231@fw.wintelcom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <20000914152635.X12231@fw.wintelcom.net>; from bright@wintelcom.net on Thu, Sep 14, 2000 at 03:26:36PM -0700 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Alfred Perlstein [000914 15:27] wrote: > * Don Lewis [000914 15:22] wrote: > > > > Index: kern_fork.c > > =================================================================== > > RCS file: /home/ncvs/src/sys/kern/kern_fork.c,v > > retrieving revision 1.72.2.4 > > diff -u -r1.72.2.4 kern_fork.c > > --- kern_fork.c 2000/09/07 19:13:36 1.72.2.4 > > +++ kern_fork.c 2000/09/14 22:19:59 > > @@ -246,8 +246,8 @@ > > * 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 > > */ > > That doesn't look like valid C to me. :) Because I'm working on like 20 things at once, ugh! nevermind. :) -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message