From ce9708475b646adfc783552d21e874f7a9745a4e Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Sun, 29 Dec 1996 02:20:34 +0000 Subject: [PATCH] Overide important environment variables. Preliiminary fix; include in patch release. [326] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9699 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/bsd/ChangeLog | 5 +++++ src/appl/bsd/login.c | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index f5b533421..53cd10b6b 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,8 @@ +Sat Dec 28 21:06:43 1996 Sam Hartman + + * login.c: Force environment variables like HOME to be set even if + -p given. + Tue Dec 24 16:08:41 1996 Tom Yu * configure.in: Fix up "test $ac_cv_c_cross" to deal with diff --git a/src/appl/bsd/login.c b/src/appl/bsd/login.c index 04045490d..ea978e6d0 100644 --- a/src/appl/bsd/login.c +++ b/src/appl/bsd/login.c @@ -1829,16 +1829,16 @@ int rewrite_ccache = 1; /*try to write out ccache*/ read_env_vars_from_file ("/etc/TIMEZONE"); #else if (tz) - setenv ("TZ", tz, 0); + setenv ("TZ", tz, 1); #endif if (ccname) - setenv("KRB5CCNAME", ccname, 0); + setenv("KRB5CCNAME", ccname, 1); - setenv("HOME", pwd->pw_dir, 0); - setenv("PATH", LPATH, 0); - setenv("USER", pwd->pw_name, 0); - setenv("SHELL", pwd->pw_shell, 0); + setenv("HOME", pwd->pw_dir, 1); + setenv("PATH", LPATH, 1); + setenv("USER", pwd->pw_name, 1); + setenv("SHELL", pwd->pw_shell, 1); if (term[0] == '\0') (void) strncpy(term, stypeof(tty), sizeof(term)); -- 2.26.2