From 4d3bb5ada46afa031ff903093515edcd7b7ece52 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Sun, 11 Dec 2022 14:22:59 -0500 Subject: [PATCH] LibSQL: Do not fchmod the SQL socket on macOS Similar to: 9a4ee9aa1a6d947c720b5a550d1d5e81e715ba98. --- Userland/Libraries/LibSQL/SQLClient.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Libraries/LibSQL/SQLClient.cpp b/Userland/Libraries/LibSQL/SQLClient.cpp index 2f54f84bbc..3f41577350 100644 --- a/Userland/Libraries/LibSQL/SQLClient.cpp +++ b/Userland/Libraries/LibSQL/SQLClient.cpp @@ -37,7 +37,9 @@ static ErrorOr create_database_socket(DeprecatedString const& socket_path) TRY(Core::System::fcntl(socket_fd, F_SETFD, FD_CLOEXEC)); # endif +# ifndef AK_OS_MACOS TRY(Core::System::fchmod(socket_fd, 0600)); +# endif auto socket_address = Core::SocketAddress::local(socket_path); auto socket_address_un = socket_address.to_sockaddr_un().release_value();