Lakka-LibreELEC/packages/wayland/compositor/sway/patches/sway-100.01-static-ipc-socket.patch
2022-02-03 11:09:40 +01:00

12 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");
}