summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibSQL/SQLClient.cpp
diff options
context:
space:
mode:
authorNiklas Poslovski <ni.pos@yandex.com>2023-02-20 18:24:38 +0100
committerAndreas Kling <kling@serenityos.org>2023-02-20 18:47:09 +0100
commit13f67676370451e60049455ce38d3d06a81d0b92 (patch)
treeb36a5e9b55fe62212c089d95f18bba1c6512b133 /Userland/Libraries/LibSQL/SQLClient.cpp
parentf700d553abb984e59167b63f8c1a8ae8ad793cb4 (diff)
downloadserenity-13f67676370451e60049455ce38d3d06a81d0b92.zip
LibSQL: Don't use fchmod for socket on any BSD
Diffstat (limited to 'Userland/Libraries/LibSQL/SQLClient.cpp')
-rw-r--r--Userland/Libraries/LibSQL/SQLClient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibSQL/SQLClient.cpp b/Userland/Libraries/LibSQL/SQLClient.cpp
index dd6695c156..33f21ac3b4 100644
--- a/Userland/Libraries/LibSQL/SQLClient.cpp
+++ b/Userland/Libraries/LibSQL/SQLClient.cpp
@@ -37,7 +37,7 @@ static ErrorOr<int> create_database_socket(DeprecatedString const& socket_path)
TRY(Core::System::fcntl(socket_fd, F_SETFD, FD_CLOEXEC));
# endif
-# if !defined(AK_OS_MACOS) && !defined(AK_OS_FREEBSD) && !defined(AK_OS_OPENBSD)
+# if !defined(AK_OS_BSD_GENERIC)
TRY(Core::System::fchmod(socket_fd, 0600));
# endif