Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Feb 1996 16:22:17 -0800 (PST)
From:      Archie Cobbs <archie@tribe.com>
To:        freebsd-hackers@freebsd.org
Subject:   pwd_mkdb question
Message-ID:  <199602080022.QAA04064@bubba.tribe.com>

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199602080022.QAA04064>