diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-01-19 09:58:35 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-01-19 09:58:35 +0000 |
commit | 66d782493035c196d8a26286ca50611a8b103a19 (patch) | |
tree | 04ace86d29966e14f324404c4a489970021b3a1b /usr.bin | |
parent | 25ce791ae90204c4c2bf2226207e5518acc745e5 (diff) |
Make a tmux-%u directory under TMUX_TMPDIR, like TMPDIR.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tmux/tmux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/tmux.c b/usr.bin/tmux/tmux.c index 013f11a99e0..91a8c704b43 100644 --- a/usr.bin/tmux/tmux.c +++ b/usr.bin/tmux/tmux.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.c,v 1.134 2015/01/19 09:57:33 nicm Exp $ */ +/* $OpenBSD: tmux.c,v 1.135 2015/01/19 09:58:34 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -131,7 +131,7 @@ makesocketpath(const char *label) uid = getuid(); if ((s = getenv("TMUX_TMPDIR")) != NULL && *s != '\0') - xsnprintf(base, sizeof base, "%s/", s); + 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 |