comparison svr-chansession.c @ 508:d4bbc0039008

- Set a default path, since bash won't export one otherwise (though it will set one, leading to mysterious problems) - Rearrange some options
author Matt Johnston <matt@ucc.asn.au>
date Wed, 05 Nov 2008 13:30:23 +0000
parents 43bbe17d6ba0
children 52d7301e46bd
comparison
equal deleted inserted replaced
507:ada77f43c79a 508:d4bbc0039008
876 /* set env vars */ 876 /* set env vars */
877 addnewvar("USER", ses.authstate.pw_name); 877 addnewvar("USER", ses.authstate.pw_name);
878 addnewvar("LOGNAME", ses.authstate.pw_name); 878 addnewvar("LOGNAME", ses.authstate.pw_name);
879 addnewvar("HOME", ses.authstate.pw_dir); 879 addnewvar("HOME", ses.authstate.pw_dir);
880 addnewvar("SHELL", get_user_shell()); 880 addnewvar("SHELL", get_user_shell());
881 addnewvar("PATH", DEFAULT_PATH);
881 if (chansess->term != NULL) { 882 if (chansess->term != NULL) {
882 addnewvar("TERM", chansess->term); 883 addnewvar("TERM", chansess->term);
883 } 884 }
884 885
885 /* change directory */ 886 /* change directory */