Re: switch -u takes negative number

Tomasz Kłoczko <[email protected]> Sun, 23 Jul 2006 23:47:29 +0200 (CEST)
Newsgroups gmane.linux.pld.shadow.general
Message-ID <[email protected]>
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--0-1670172593-1153691249=:10018
Content-Type: TEXT/PLAIN; charset=ISO-8859-2; format=flowed
Content-Transfer-Encoding: 8BIT

On Tue, 18 Jul 2006, Peter Vrabec wrote:

>
> fixed and improved patch in attachment

Your patch is better than mine but still it can be overflowed by for 
example:

# useradd -u " -1" test

Probably best way will be write kind of overlay function for strtol()
because checking all variants isn't so simple :>

kloczek
-- 
-----------------------------------------------------------
*Ludzie nie maj± problemów, tylko sobie sami je stwarzaj±*
-----------------------------------------------------------
Tomasz K³oczko, sys adm @zie.pg.gda.pl|*e-mail: [email protected]*
--0-1670172593-1153691249=:10018
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline