summaryrefslogtreecommitdiffhomepage
path: root/svr-chansession.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2008-11-05 13:30:23 +0000
committerMatt Johnston <matt@ucc.asn.au>2008-11-05 13:30:23 +0000
commit51dcfc06dc1157e81d732fccb32d311f09aad191 (patch)
treebafd3c7ff29e46c72838cc31b1d09ec5057752d8 /svr-chansession.c
parent8edc0c2afc3da182f46cdd0cae29e03089a18eb6 (diff)
- Set a default path, since bash won't export one otherwise (though it will set
one, leading to mysterious problems) - Rearrange some options --HG-- extra : convert_revision : 6e81becf6e96479e10d9244186a900fab7079bf8
Diffstat (limited to 'svr-chansession.c')
-rw-r--r--svr-chansession.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/svr-chansession.c b/svr-chansession.c
index e7a2106..23dad8c 100644
--- a/svr-chansession.c
+++ b/svr-chansession.c
@@ -878,6 +878,7 @@ static void execchild(void *user_data) {
addnewvar("LOGNAME", ses.authstate.pw_name);
addnewvar("HOME", ses.authstate.pw_dir);
addnewvar("SHELL", get_user_shell());
+ addnewvar("PATH", DEFAULT_PATH);
if (chansess->term != NULL) {
addnewvar("TERM", chansess->term);
}