mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 06:15:07 +00:00
LibSQL: Don't use fchmod for socket on any BSD
This commit is contained in:
parent
f700d553ab
commit
13f6767637
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue