File tmux-socket-path.patch of Package tmux

# Use /run/tmux instead of /tmp as the default socket path, this add some
# robustness against accidental deletion via systemd-tmpfiles-clean, tmpwatch,
# or similar
# 
# <crrodriguez@opensuse.org>
--- tmux.c.orig	2015-03-01 22:46:05.000000000 +0100
+++ tmux.c	2015-07-09 09:40:19.853421647 +0200
@@ -138,7 +138,7 @@
 	else if ((s = getenv("TMPDIR")) != NULL && *s != '\0')
 		xsnprintf(base, sizeof base, "%s/tmux-%u", s, uid);
 	else
-		xsnprintf(base, sizeof base, "%s/tmux-%u", _PATH_TMP, uid);
+		xsnprintf(base, sizeof base, "/run/tmux/%u", uid);
 
 	if (mkdir(base, S_IRWXU) != 0 && errno != EEXIST)
 		return (NULL);
openSUSE Build Service is sponsored by