+Thu Feb 27 10:58:07 1997 Sam Hartman <hartmans@luminous.MIT.EDU>
+
+ * krshd.c: Allow user to login with / as home directory if homedir
+ not found. [167]
+
Sat Feb 22 00:54:06 1997 Sam Hartman <hartmans@luminous.MIT.EDU>
* krlogin.c (mode): Clean up Posix terminal handling for NetBSD.
#endif /*CRAY*/
if (chdir(pwd->pw_dir) < 0) {
- syslog(LOG_ERR ,
- "Principal %s (%s@%s) for local user %s has no home directory.\n",
- kremuser, remuser, hostname, locuser);
- error("No remote directory.\n");
+ if(chdir("/") < 0) {
+ error("No remote directory.\n");
goto signout_please;
+ }
+ pwd->pw_dir = "/";
}
#ifdef KERBEROS