From c358c6fbb1681df7ae5a1fe1ed67998b56241875 Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Fri, 28 Feb 1997 03:01:58 +0000 Subject: [PATCH] krshd should not require a user to have a valid home directory. [krb5-appl/167] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9986 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/bsd/ChangeLog | 5 +++++ src/appl/bsd/krshd.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index 7ceafc066..27e30d20e 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,8 @@ +Thu Feb 27 10:58:07 1997 Sam Hartman + + * krshd.c: Allow user to login with / as home directory if homedir + not found. [167] + Sat Feb 22 00:54:06 1997 Sam Hartman * krlogin.c (mode): Clean up Posix terminal handling for NetBSD. diff --git a/src/appl/bsd/krshd.c b/src/appl/bsd/krshd.c index 1b1d6a304..e999a2806 100644 --- a/src/appl/bsd/krshd.c +++ b/src/appl/bsd/krshd.c @@ -1012,11 +1012,11 @@ void doit(f, fromp) #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 -- 2.26.2