Date: Thu, 13 Jun 1996 12:08:05 -0400 (EDT) From: James FitzGibbon <james@expresslane.ca> To: freebsd-current@freebsd.org Subject: UIDs greater than 65535 ? Message-ID: <Pine.BSI.3.93.960613120205.5404A-100000@expresslane.ca>
next in thread | raw e-mail | index | archive | help
I've noticed a slight discrepancy between the maxmium UID allowed in include/pwd.h, and that allowed in usr.sbin/pw_scan.c. The struct passwd uses : int pw_uid; /* user uid */ But pw_scan.c uses this check routine : if (id > USHRT_MAX) { warnx("%s > max uid value (%d)", p, USHRT_MAX); return (0); } So that although a userid can have a 32-bit value, the password scanning routines won't allow anything higher than 16 bit. Is this just an oversight (i.e. can we just change the constant in pw_scan.c? ) or are there other reasons why the UIDs are limited to 16-bit ? Please reply directly, I'm not on -current for fear of a mail explosion like -stable ... 8-) -- j. +--------------------------------------------------------------------------+ | James FitzGibbon james@expresslane.ca | | Internet Canada Corp. Voice/Fax: 416-363-8518/8713 | +--------------------------------------------------------------------------+
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.93.960613120205.5404A-100000>