summaryrefslogtreecommitdiff
path: root/Userland/Services/TelnetServer
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2022-08-20 17:01:53 +0200
committerLinus Groh <mail@linusgroh.de>2022-08-23 19:00:04 +0100
commit39a3775f4870fb16b49fec24aa5fd506b17a0ea9 (patch)
tree2cd49be1c6563988cf74a67599437d57c7014f67 /Userland/Services/TelnetServer
parent61e18c681baacca25dffadeab688730402b6c443 (diff)
downloadserenity-39a3775f4870fb16b49fec24aa5fd506b17a0ea9.zip
Userland: Rely on a single authoritative source for the default `PATH`
Diffstat (limited to 'Userland/Services/TelnetServer')
-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");