aboutsummaryrefslogtreecommitdiff
path: root/cmd-split-window.c
diff options
context:
space:
mode:
authorThomas <thomas@xteddy.org>2013-09-26 12:00:48 +0100
committerThomas <thomas@xteddy.org>2013-09-30 15:26:32 +0100
commitbda970b3b14d145fcaa25cf8f3f9a3cb70a864c3 (patch)
tree14968a00572db6c4d25ec11838844600dbac8f83 /cmd-split-window.c
parent75ec17f0b5204a12d15282a5167918416cd05276 (diff)
downloadrtmux-bda970b3b14d145fcaa25cf8f3f9a3cb70a864c3.tar.gz
rtmux-bda970b3b14d145fcaa25cf8f3f9a3cb70a864c3.tar.bz2
rtmux-bda970b3b14d145fcaa25cf8f3f9a3cb70a864c3.zip
Don't treat TMUX_TMPDIR as a potential file
The point of setting TMUX_TMPDIR is to then make any labels from -L go to that directory. In the case of makesocketpath() with no TMUX_TMPDIR set, would set both the path and the default socket to a file. The checking of the permissions on the file worked fine in that case, but when TMUX_TMPDIR is set, won't work on a directory. This fixes the problem by ensuring the check on the permissions is performed on directories only.
Diffstat (limited to 'cmd-split-window.c')
0 files changed, 0 insertions, 0 deletions