diff options
author | nicm <nicm> | 2013-10-10 12:03:22 +0000 |
---|---|---|
committer | nicm <nicm> | 2013-10-10 12:03:22 +0000 |
commit | e4dc1568ce49120962d4932ff8417c60778a5a33 (patch) | |
tree | 9549ed72fb57664c524b1a0d5de061e37f0968f5 /cmd-queue.c | |
parent | 1bd0851ee852b305c48863b7701af74a171633e9 (diff) | |
download | rtmux-e4dc1568ce49120962d4932ff8417c60778a5a33.tar.gz rtmux-e4dc1568ce49120962d4932ff8417c60778a5a33.tar.bz2 rtmux-e4dc1568ce49120962d4932ff8417c60778a5a33.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.
By Thomas Adam.
Diffstat (limited to 'cmd-queue.c')
0 files changed, 0 insertions, 0 deletions