mirror of
https://github.com/tmux/tmux.git
synced 2026-08-21 14:20:52 +00:00
e4dc1568ce49120962d4932ff8417c60778a5a33
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.
Description
tmux source code
Languages
C
75.9%
Shell
16%
Roff
5.9%
Yacc
1%
M4
0.7%
Other
0.4%