From: Tormod Volden Date: Thu, 4 Jun 2015 12:45:35 +0000 (+0200) Subject: ssh: Set PATH if unset X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=d5d0747f2bc6aba47109c0b09457fd7c1af80455;p=FUZIX.git ssh: Set PATH if unset Another workaround for using ssh out of the box without inittab. Signed-off-by: Tormod Volden --- diff --git a/Applications/util/ssh.c b/Applications/util/ssh.c index 62367114..4efc052e 100644 --- a/Applications/util/ssh.c +++ b/Applications/util/ssh.c @@ -153,6 +153,8 @@ int main(int argc, char *argval[]) signal(SIGQUIT, SIG_IGN); if (login_sh) { + if (!getenv("PATH")) + putenv("PATH=/bin"); home = getenv("HOME"); if (!home) putenv("HOME=/"); chdir(getenv("HOME"));