From: nicm Date: Mon, 19 Jan 2015 09:58:34 +0000 (+0000) Subject: Make a tmux-%u directory under TMUX_TMPDIR, like TMPDIR. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=cb12d36b265eefa1961f25e796aed9c7d1134cca;p=openbsd Make a tmux-%u directory under TMUX_TMPDIR, like TMPDIR. --- 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