From d5d0747f2bc6aba47109c0b09457fd7c1af80455 Mon Sep 17 00:00:00 2001 From: Tormod Volden Date: Thu, 4 Jun 2015 14:45:35 +0200 Subject: [PATCH] ssh: Set PATH if unset Another workaround for using ssh out of the box without inittab. Signed-off-by: Tormod Volden --- Applications/util/ssh.c | 2 ++ 1 file changed, 2 insertions(+) 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")); -- 2.34.1