[2702] in Release_Engineering

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

login change for AFS

daemon@ATHENA.MIT.EDU (Mark Rosenstein)
Fri Jul 12 11:47:10 1991

Date: Fri, 12 Jul 91 11:47:10 -0400
From: Mark Rosenstein <mar@MIT.EDU>
To: rel-eng@MIT.EDU

If the builds are being held up anyway, you may want to take this
change.  It has run on the dialups for a long time with no apparent
problems.
					-Mark

*** /source/athena/bin/login/login.c	Mon Jul  8 09:17:12 1991
--- /mit/opssrc/dialup/src/login.c	Wed Sep  5 17:26:03 1990
***************
*** 1260,1265 ****
--- 1163,1174 ----
  	    if (remove_pwent(pwd))
  		    puts("Couldn't remove password entry");
  
+     /* Do this last, as we have to setuid to the user before doing the
+      * unlog.
+      */
+     if (setuid(pwd->pw_uid) == 0)
+       ktc_ForgetAllTokens();
+ 
      /* Leave */
      exit(0);
  }

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