LibSQL: Do not fchmod the SQL socket on macOS

Similar to: 9a4ee9aa1a.
This commit is contained in:
Timothy Flynn 2022-12-11 14:22:59 -05:00 committed by Andrew Kaster
parent 1d687b0b31
commit 4d3bb5ada4
Notes: sideshowbarker 2024-07-17 06:20:50 +09:00

View file

@ -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();