diff options
author | Niklas Poslovski <ni.pos@yandex.com> | 2023-02-20 18:24:38 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-02-20 18:47:09 +0100 |
commit | 13f67676370451e60049455ce38d3d06a81d0b92 (patch) | |
tree | b36a5e9b55fe62212c089d95f18bba1c6512b133 /Userland/Libraries/LibSQL/SQLClient.cpp | |
parent | f700d553abb984e59167b63f8c1a8ae8ad793cb4 (diff) | |
download | serenity-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.cpp | 2 |
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 |