Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam
2015-10-25 09:22:20 +00:00
2 changed files with 12 additions and 12 deletions

2
tmux.c
View File

@ -131,8 +131,6 @@ makesocketpath(const char *label)
uid = getuid();
if ((s = getenv("TMUX_TMPDIR")) != NULL && *s != '\0')
xsnprintf(base, sizeof base, "%s/tmux-%u", s, uid);
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);