summaryrefslogtreecommitdiff
path: root/Userland/Services/WebContent
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2022-12-07 21:34:00 +0100
committerSam Atkins <atkinssj@gmail.com>2022-12-08 12:52:14 +0000
commit2fc2025f49bb974a46afdf2242489ab0fe5a5cba (patch)
treee7565af2a4b432991c70180b9a7e7f90b2dc3e0b /Userland/Services/WebContent
parentbd272e638cc33e3282ffde1052eafd15cd00eac5 (diff)
downloadserenity-2fc2025f49bb974a46afdf2242489ab0fe5a5cba.zip
LibCore: Move `Core::Stream::File::exists()` to `Core::File`
`Core::Stream::File` shouldn't hold any utility methods that are unrelated to constructing a `Core::Stream`, so let's just replace the existing `Core::File::exists` with the nicer looking implementation.
Diffstat (limited to 'Userland/Services/WebContent')
-rw-r--r--Userland/Services/WebContent/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Services/WebContent/main.cpp b/Userland/Services/WebContent/main.cpp
index 49311e52f6..b8687c844b 100644
--- a/Userland/Services/WebContent/main.cpp
+++ b/Userland/Services/WebContent/main.cpp
@@ -6,6 +6,7 @@
#include "ImageCodecPluginSerenity.h"
#include <LibCore/EventLoop.h>
+#include <LibCore/File.h>
#include <LibCore/LocalServer.h>
#include <LibCore/Stream.h>
#include <LibCore/System.h>
@@ -26,7 +27,7 @@ ErrorOr<int> serenity_main(Main::Arguments)
TRY(Core::System::pledge("stdio recvfd sendfd accept unix rpath"));
// This must be first; we can't check if /tmp/webdriver exists once we've unveiled other paths.
- if (Core::Stream::File::exists("/tmp/webdriver"sv))
+ if (Core::File::exists("/tmp/webdriver"sv))
TRY(Core::System::unveil("/tmp/webdriver", "rw"));
TRY(Core::System::unveil("/sys/kernel/processes", "r"));