From owner-freebsd-hackers Wed Feb 7 16:22:54 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id QAA11488 for hackers-outgoing; Wed, 7 Feb 1996 16:22:54 -0800 (PST) Received: from bubba.tribe.com ([205.184.207.7]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id QAA11483 for ; Wed, 7 Feb 1996 16:22:52 -0800 (PST) Received: (from archie@localhost) by bubba.tribe.com (8.6.12/8.6.12) id QAA04064 for freebsd-hackers@freebsd.org; Wed, 7 Feb 1996 16:22:17 -0800 From: Archie Cobbs Message-Id: <199602080022.QAA04064@bubba.tribe.com> Subject: pwd_mkdb question To: freebsd-hackers@freebsd.org Date: Wed, 7 Feb 1996 16:22:17 -0800 (PST) X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org Precedence: bulk Hello hackers... got a question regarding UID's. In the file /usr/src/usr.sbin/pwd_mkdb/pw_scan.c, you'll find these lines: struct passwd *pw; [...] if (id > USHRT_MAX) { warnx("%s > max uid value (%d)", p, USHRT_MAX); return (0); } pw->pw_uid = id; However, /usr/include/pwd.h defines the "pw_uid" field of "struct passwd" to have type "int". In other words, according to the header file, UID's ought to be able to be 32 bits long. So is there some reason why UID's are limited to 16 bits here? I have a need for big UID's ... (don't ask :-) Thanks, -Archie _______________________________________________________________________________ Archie L. Cobbs, archie@tribe.com * Tribe Computer Works http://www.tribe.com