From owner-freebsd-stable Wed Nov 17 22:43:59 1999 Delivered-To: freebsd-stable@freebsd.org Received: from finland.ispro.net.tr (finland.ispro.net.tr [212.174.120.1]) by hub.freebsd.org (Postfix) with ESMTP id C85DD14BE3 for ; Wed, 17 Nov 1999 22:43:47 -0800 (PST) (envelope-from yurtesen@ispro.net.tr) Received: from localhost (yurtesen@localhost) by finland.ispro.net.tr (8.9.3/8.9.3) with ESMTP id IAA75799; Thu, 18 Nov 1999 08:43:36 +0200 (EET) (envelope-from yurtesen@ispro.net.tr) Date: Thu, 18 Nov 1999 08:43:36 +0200 (EET) From: Evren Yurtesen To: Vadim Belman Cc: freebsd-stable@FreeBSD.ORG Subject: Re: pwd_mkdb max uid warning. In-Reply-To: <85iu312bp7.fsf@dialup90.apex.dp.ua> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You are right I guess... last time I tried to generate a user with ID of 10000 If I remember right... I have found out that the quotas are not working for that user and there are some other problems. (I do not remember very clearly) +---------------------------------------------------------+ | Name : Evren Yurtesen - yurtesen@ispro.net.tr | | Job Title : Technical Consultant & System Administrator| | S-Mail : Talikkokatu 6B 26, Turku 20540, Finland | | Work Tel. : +90-232-2463992 | | Mobile Tel.: +358-40-5073940 | +---------------------------------------------------------+ On 17 Nov 1999, Vadim Belman wrote: > Recently I answered a question concerning maximum valid UID > value. I had created a new user with UID 1000000 using pw > utility. Everything went smoothly, but pwd_mkdb warned about > creation of UID bigger than 65535. I found this piece of code in > /usr/src/usr.sbin/pwd_mkdb/pw_scan.c: > > if (id > USHRT_MAX) { > warnx("%s > max uid value (%d)", p, USHRT_MAX); > /*return (0);*/ /* THIS SHOULD NOT BE FATAL! */ > } > > I see only one reason for this: for keeping compatibility with old > utilities which don't use uid_t but relay on unsigned short > values. Am I right? Is there any other reason? Or, perhaps, this > code is obsolete and may be removed without harm? > -- > /Voland Vadim Belman > E-mail: voland@plab.ku.dk > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message