summaryrefslogtreecommitdiff
path: root/Userland/Services/TelnetServer/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Services/TelnetServer/main.cpp')
-rw-r--r--Userland/Services/TelnetServer/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Services/TelnetServer/main.cpp b/Userland/Services/TelnetServer/main.cpp
index 33b81d304e..b210e34305 100644
--- a/Userland/Services/TelnetServer/main.cpp
+++ b/Userland/Services/TelnetServer/main.cpp
@@ -10,6 +10,7 @@
#include <AK/Types.h>
#include <LibCore/ArgsParser.h>
#include <LibCore/EventLoop.h>
+#include <LibCore/File.h>
#include <LibCore/TCPServer.h>
#include <LibMain/Main.h>
#include <fcntl.h>
@@ -71,7 +72,7 @@ static void run_command(int ptm_fd, String command)
args[1] = "-c";
args[2] = command.characters();
}
- char const* envs[] = { "TERM=xterm", "PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/bin", nullptr };
+ char const* envs[] = { "TERM=xterm", "PATH=" DEFAULT_PATH, nullptr };
rc = execve("/bin/Shell", const_cast<char**>(args), const_cast<char**>(envs));
if (rc < 0) {
perror("execve");