From: Sam Hartman Date: Fri, 28 Feb 1997 03:01:58 +0000 (+0000) Subject: krshd should not require a user to have a valid home directory. [krb5-appl/167] X-Git-Tag: krb5-1.1-beta1~1207 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c358c6fbb1681df7ae5a1fe1ed67998b56241875;p=krb5.git 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 --- 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