distribution/packages/wayland/compositor/sway/patches/sway-100.01-static-ipc-socket.patch
2022-07-11 06:58:58 -04:00

11 lines
370 B
Diff

--- a/sway/ipc-server.c
+++ b/sway/ipc-server.c
@@ -140,7 +140,7 @@ struct sockaddr_un *ipc_user_sockaddr(vo
dir = "/tmp";
}
if (path_size <= snprintf(ipc_sockaddr->sun_path, path_size,
- "%s/sway-ipc.%u.%i.sock", dir, getuid(), getpid())) {
+ "%s/sway-ipc.%u.sock", dir, getuid())) {
sway_abort("Socket path won't fit into ipc_sockaddr->sun_path");
}