this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Apply Unix socket name fix to `connect`

See commit 2882e9b1e50c38f975d1527e91d03b443046dc97

+2 -1
+2 -1
src/kernel/emulation/linux/network/connect.c
··· 27 27 if (socklen > 512) 28 28 return -EINVAL; 29 29 30 - fixed = __builtin_alloca(socklen+100); 30 + fixed = __builtin_alloca((((struct sockaddr_fixup*)name)->bsd_family == PF_LOCAL) ? sizeof(struct sockaddr_fixup) : socklen); 31 31 memcpy(fixed, name, socklen); 32 32 33 33 fixed->linux_family = sfamily_bsd_to_linux(fixed->bsd_family); ··· 46 46 47 47 strncpy(fixed->sun_path, vc.path, sizeof(fixed->sun_path) - 1); 48 48 fixed->sun_path[sizeof(fixed->sun_path) - 1] = '\0'; 49 + socklen = sizeof(*fixed) - sizeof(fixed->sun_path) + strlen(fixed->sun_path); 49 50 } 50 51 51 52 #ifdef __NR_socketcall