aboutsummaryrefslogtreecommitdiff
path: root/tmux.c
diff options
context:
space:
mode:
authorderaadt <deraadt>2015-10-25 07:48:16 +0000
committerderaadt <deraadt>2015-10-25 07:48:16 +0000
commit3034a71488ce5a76105b5777848dd8578a7aa376 (patch)
tree754c5ae799399f692fb1a7bb545dbcd8059f5c00 /tmux.c
parent2e2b8a95bd13dab848a61113c9974c9ac936f9d6 (diff)
downloadrtmux-3034a71488ce5a76105b5777848dd8578a7aa376.tar.gz
rtmux-3034a71488ce5a76105b5777848dd8578a7aa376.tar.bz2
rtmux-3034a71488ce5a76105b5777848dd8578a7aa376.zip
Let's see if anyone screams about not being able to specify $TMPDIR
for their tmux sockets. (Over the years, I have seen $TMPDIR set up worse than /tmp many times, and don't know how this practice infected other parts of the system. Nothing uses tmpdir(3), nor a huge-temporary-file program like sort.) ok nicm
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tmux.c b/tmux.c
index b2530285..8b3d0bfe 100644
--- a/tmux.c
+++ b/tmux.c
@@ -128,8 +128,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);