File tmux-socket-path.patch of Package tmux.27525

--- a/tmux.c
+++ b/tmux.c
@@ -121,7 +121,7 @@
 	if ((s = getenv("TMUX_TMPDIR")) != NULL && *s != '\0')
 		xasprintf(&base, "%s/tmux-%ld", s, (long)uid);
 	else
-		xasprintf(&base, "%s/tmux-%ld", _PATH_TMP, (long)uid);
+		xasprintf(&base, "/run/tmux/%ld", (long)uid);
 	if (realpath(base, resolved) == NULL &&
 	    strlcpy(resolved, base, sizeof resolved) >= sizeof resolved) {
 		errno = ERANGE;
openSUSE Build Service is sponsored by