From cb12d36b265eefa1961f25e796aed9c7d1134cca Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 19 Jan 2015 09:58:34 +0000 Subject: [PATCH] Make a tmux-%u directory under TMUX_TMPDIR, like TMPDIR. --- usr.bin/tmux/tmux.c | 4 ++-- 1 file 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 @@ -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 -- 2.20.1