From owner-cvs-all Thu May 16 21:27: 5 2002 Delivered-To: cvs-all@freebsd.org Received: from treetop.robbins.dropbear.id.au (117.a.009.mel.iprimus.net.au [210.50.112.117]) by hub.freebsd.org (Postfix) with ESMTP id F227937B404; Thu, 16 May 2002 21:26:57 -0700 (PDT) Received: from treetop.robbins.dropbear.id.au (localhost [127.0.0.1]) by treetop.robbins.dropbear.id.au (8.12.2/8.12.2) with ESMTP id g4GHeOeo008447; Fri, 17 May 2002 03:40:24 +1000 (EST) (envelope-from tim@treetop.robbins.dropbear.id.au) Received: (from tim@localhost) by treetop.robbins.dropbear.id.au (8.12.2/8.12.2/Submit) id g4GHeO5w008446; Fri, 17 May 2002 03:40:24 +1000 (EST) Date: Fri, 17 May 2002 03:40:23 +1000 From: "Tim J. Robbins" To: John Baldwin Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/renice renice.c Message-ID: <20020517034023.A8414@treetop.robbins.dropbear.id.au> References: <200205162355.g4GNtam63176@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from jhb@FreeBSD.org on Thu, May 16, 2002 at 11:27:46PM -0400 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, May 16, 2002 at 11:27:46PM -0400, John Baldwin wrote: > Why? Are there really people out there with usernames of '007' or '0x1c'? The standard requires user & process ID's to be specified as decimal integers, and that's the way it has traditionally worked (it used atoi() before). Users should be able to specify leading zeros without causing the number to be interpreted as octal. I believe accepting hexadecimal and octal numbers was a mistake introduced by christos@netbsd while modifying renice to use strtol() instead of atoi(). Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message