[2877] in Release_Engineering

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

patch to xlogin

daemon@ATHENA.MIT.EDU (vanharen@MIT.EDU)
Tue Jun 16 22:02:34 1992

From: vanharen@MIT.EDU
Date: Tue, 16 Jun 92 22:02:17 EDT
To: rel-eng@MIT.EDU


The following patch fixes a bug in xlogin.  For details on the bug, see
myself or Lucien.  Tested on vax, dec, and rt.  Since this is a simple
change, it should be easy to audit and incorporate.

							-C.



*** /source/athena/athena.etc/xdm/xlogin/verify.c	Tue Jun  9 14:07:14 1992
--- /mit/vanharen/verify.c	Tue Jun 16 21:37:19 1992
***************
*** 137,142 ****
--- 137,149 ----
      nocreate = file_exists(NOCREATE);
      nologin = file_exists(NOLOGIN);
  
+     /* check to make sure a username was entered */
+     if (!strcmp(user, ""))
+       {
+ 	strcpy(errbuf, "No username entered.  Please enter a username and password to try again.");
+ 	return(errbuf);
+       }
+ 
      /* check local password file */
      if ((pwd = getpwnam(user)) != NULL) {
  	local_passwd = TRUE;

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