LibSQL: Don't use fchmod for socket on any BSD

This commit is contained in:
Niklas Poslovski 2023-02-20 18:24:38 +01:00 committed by Andreas Kling
parent f700d553ab
commit 13f6767637
Notes: sideshowbarker 2024-07-19 16:56:10 +09:00

View file

@ -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