From owner-freebsd-stable Wed Nov 17 10:52:24 1999 Delivered-To: freebsd-stable@freebsd.org Received: from dialup90.apex.dp.ua (dialup90.apex.dp.ua [195.24.139.90]) by hub.freebsd.org (Postfix) with ESMTP id BE47615311 for ; Wed, 17 Nov 1999 10:52:11 -0800 (PST) (envelope-from voland@dialup90.apex.dp.ua) Received: (from voland@localhost) by dialup90.apex.dp.ua (8.9.3/8.9.3) id UAA15631; Wed, 17 Nov 1999 20:52:26 +0200 (EET) (envelope-from voland) To: freebsd-stable@freebsd.org Subject: pwd_mkdb max uid warning. From: Vadim Belman Date: 17 Nov 1999 20:51:48 +0200 Message-ID: <85iu312bp7.fsf@dialup90.apex.dp.ua> Lines: 18 X-Mailer: Gnus v5.7/Emacs 20.4 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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