Don't chmod UNIX sockets to 700 (#16200)

This commit is contained in:
Kai Tamkun
2025-01-06 21:25:57 -08:00
committed by GitHub
parent 1923509b05
commit cfd05bdfcf

View File

@@ -843,13 +843,6 @@ static LIBUS_SOCKET_DESCRIPTOR internal_bsd_create_listen_socket_unix(const char
return LIBUS_SOCKET_ERROR;
}
#ifndef _WIN32
// 700 permission by default
fchmod(listenFd, S_IRWXU);
#else
_chmod(path, S_IREAD | S_IWRITE | S_IEXEC);
#endif
#ifdef _WIN32
_unlink(path);
#else