large UIDs cause problems in 'sa'

Steven M. Schultz sms at wlv.imsd.contel.com
Wed Oct 4 07:44:39 AEST 1989


Subject: Large UIDs cause 'sa' problems
Index:	etc/sa.c 2.10BSD

Description:
	if you have the account of nobody::-2:-2: ....
	sa will complain that every account with a uid > 7 is 
	preposterous.
Repeat-By:
	create the account
	nobody:Nologin:-2:-2:anonymous NFS user:/:
	then run sa.

	Your line numbers may be somewhat different if the earlier
	patch to fix a conflict with the shadow password file 
	hasn't been applied.

Fix:
*** sa.c.old	Thu Jun 15 02:32:35 1989
--- sa.c	Tue Oct  3 16:58:17 1989
***************
*** 296,302 ****
  	pgdiv = getpagesize() / 1024;
  	if (pgdiv == 0)
  		pgdiv = 1;
! 	maxuser = USERSLOP + getmaxuid();
  
  	tabinit();
  	cmp = tcmp;
--- 296,302 ----
  	pgdiv = getpagesize() / 1024;
  	if (pgdiv == 0)
  		pgdiv = 1;
! 	maxuser = getmaxuid();
  
  	tabinit();
  	cmp = tcmp;



More information about the Comp.bugs.2bsd mailing list