distribution/packages/wayland/compositor/sway/patches/sway-100.01-static-ipc-socket.patch

12 lines
370 B
Diff
Raw Normal View History

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