Browse Source

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

Niklas Poslovski 2 năm trước cách đây
mục cha
commit
13f6767637

+ 1 - 1
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));
     TRY(Core::System::fcntl(socket_fd, F_SETFD, FD_CLOEXEC));
 #    endif
 #    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));
     TRY(Core::System::fchmod(socket_fd, 0600));
 #    endif
 #    endif