[9531] in Athena Bugs

home help back first fref pref prev next nref lref last post

7.4: /etc/athena/config_afs

daemon@ATHENA.MIT.EDU (Richard Basch)
Wed Jul 1 15:07:32 1992

Date: Wed, 1 Jul 92 15:07:13 -0400
To: bugs@MIT.EDU, testers@MIT.EDU
From: "Richard Basch" <basch@MIT.EDU>


config_afs does not properly interpret "-<cell>" notations in
SuidCells.local; the cells are not removed from the trusted cells list.

Patch follows...  "oops"...

-R

*** /tmp/,RCSt1PQMCK9	Wed Jul  1 15:05:35 1992
--- config_afs	Wed Jul  1 15:05:27 1992
***************
*** 38,44 ****
  (awk '/^>/ {print $1}' ${CELLDB}; cat ${SUIDDB}) | awk '\
  	/^>/ {i++; cells[i]=substr($1,2,length($1)-1);suid[i]=0;next}; \
  	/^-/ {for (j=1;j<i;j++) {if (substr($1,2,length($1)-1)==cells[j]) \
! 		suid[j]=0;next;}}; \
  	{for (j=1;j<i;j++) {if ($1==cells[j]) {suid[j]=1;next}}}; \
  	END {	ns=0; nn=0; \
  		for (j=1;j<i;j++) { \
--- 38,44 ----
  (awk '/^>/ {print $1}' ${CELLDB}; cat ${SUIDDB}) | awk '\
  	/^>/ {i++; cells[i]=substr($1,2,length($1)-1);suid[i]=0;next}; \
  	/^-/ {for (j=1;j<i;j++) {if (substr($1,2,length($1)-1)==cells[j]) \
! 		{suid[j]=0;next;}}}; \
  	{for (j=1;j<i;j++) {if ($1==cells[j]) {suid[j]=1;next}}}; \
  	END {	ns=0; nn=0; \
  		for (j=1;j<i;j++) { \

home help back first fref pref prev next nref lref last post