socket: pass cred to bind and setopt

This commit is contained in:
Matheus
2024-08-30 22:59:57 -03:00
parent ca42167fe1
commit 5d74bfa5f7
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -668,7 +668,7 @@ static void localsock_destroy(socket_t *socket) {
free(socket);
}
static int localsock_bind(socket_t *socket, sockaddr_t *addr) {
static int localsock_bind(socket_t *socket, sockaddr_t *addr, cred_t *cred) {
MUTEX_ACQUIRE(&socket->mutex, false);
int error;
char *path = NULL;