diff 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
line wrap: on
line diff
--- a/svr-chansession.c	Wed Nov 05 13:14:38 2008 +0000
+++ b/svr-chansession.c	Wed Nov 05 13:30:23 2008 +0000
@@ -878,6 +878,7 @@
 	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);
 	}