summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--rvnit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/rvnit.c b/rvnit.c
index 26b1446..8175b35 100644
--- a/rvnit.c
+++ b/rvnit.c
@@ -634,8 +634,10 @@ main(int argc, char *argv[])
 	}
 
 	pid1 = (getpid() == 1);
-	if (pid1)
+	if (pid1) {
+		setenv("PATH", "/usr/bin:/usr/sbin", 0);
 		own_console();
+	}
 
 	pipe(selflogfd);
 	fcntl(selflogfd[0], F_SETFL, O_NONBLOCK);