summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibSQL/SQLClient.cpp
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2022-12-11 14:22:59 -0500
committerAndrew Kaster <andrewdkaster@gmail.com>2022-12-11 19:05:07 -0700
commit4d3bb5ada46afa031ff903093515edcd7b7ece52 (patch)
tree9376f9165b9e75e4757ad1a1e50ec260f4a36452 /Userland/Libraries/LibSQL/SQLClient.cpp
parent1d687b0b31547661d3b9c9c76766690415ebbe8c (diff)
downloadserenity-4d3bb5ada46afa031ff903093515edcd7b7ece52.zip
LibSQL: Do not fchmod the SQL socket on macOS
Similar to: 9a4ee9aa1a6d947c720b5a550d1d5e81e715ba98.
Diffstat (limited to 'Userland/Libraries/LibSQL/SQLClient.cpp')
-rw-r--r--Userland/Libraries/LibSQL/SQLClient.cpp2
1 files changed, 2 insertions, 0 deletions
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<int> 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();