diff options
author | kleines Filmröllchen <filmroellchen@serenityos.org> | 2022-04-10 20:51:01 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-04-11 00:08:48 +0200 |
commit | 5319e3a03f7526ae62926897d023dd708c2bbf85 (patch) | |
tree | 5ce00f4e482fa3ca339022b79514dcbb68448b80 /Userland/Services/SystemServer/Service.cpp | |
parent | 0fd09b2381e7d01eeb80cf811415f54174b03b56 (diff) | |
download | serenity-5319e3a03f7526ae62926897d023dd708c2bbf85.zip |
LibCore+Userland: Remove File::ensure_parent_directories
We have a much safer and more powerful alternative now, so let's move
the few users over.
Diffstat (limited to 'Userland/Services/SystemServer/Service.cpp')
-rw-r--r-- | Userland/Services/SystemServer/Service.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Services/SystemServer/Service.cpp b/Userland/Services/SystemServer/Service.cpp index 4147595966..54a12cd52b 100644 --- a/Userland/Services/SystemServer/Service.cpp +++ b/Userland/Services/SystemServer/Service.cpp @@ -11,6 +11,7 @@ #include <AK/JsonObject.h> #include <AK/StringBuilder.h> #include <LibCore/ConfigFile.h> +#include <LibCore/Directory.h> #include <LibCore/File.h> #include <LibCore/SocketAddress.h> #include <LibCore/System.h> @@ -34,8 +35,7 @@ void Service::setup_socket(SocketDescriptor& socket) { VERIFY(socket.fd == -1); - auto ok = Core::File::ensure_parent_directories(socket.path); - VERIFY(ok); + MUST(Core::Directory::create(LexicalPath(socket.path).parent(), Core::Directory::CreateDirectories::Yes)); // Note: we use SOCK_CLOEXEC here to make sure we don't leak every socket to // all the clients. We'll make the one we do need to pass down !CLOEXEC later |