Klemens Nanni 7f104aa6e2 tmux module: Fix escaping in TMUX_TMPDIR
5404595b55eeefae69f2952a34dfc70e32523060 relocated code but kept
one backslah too many, leading to

	$ tmux
	error creating /run/user/$(id -u)/tmux-1000 (No such file or directory)

/run/user/$UID/ is created by pam_systemd(3) which also populates
XD_RUNTIME_DIR with that value.

Alternatively, TMUX_TMPDIR might simply default to XDG_RUNTIME_DIR
without providing the same directory yet again as default string in
parameter substitution, however such behaviour change is subject to
another patch.

In fact, with `security.polkit.enable = false` systemd_logind(8) fails
to start and /run/user/$UID/ is never created for unprivileged users
in proper login sessions;  XDG_RUNTIME_DIR would consequently not be
set either.

Removing the fallback to /run/user/$UID/ would have caused TMUX_TMPDIR
to be empty, which in turn would lead tmux(1) to use /tmp/.  This
effectively breaks the idea of isolated sockets entirely while hiding
errors from the user.
2019-05-31 15:09:59 +02:00
..
2019-04-29 14:05:50 +02:00
2018-09-29 20:51:11 -04:00
2019-04-29 14:05:50 +02:00
2017-08-11 15:48:45 +00:00
2018-07-14 20:21:41 +08:00
2019-04-29 14:05:50 +02:00
2018-04-07 15:06:51 +02:00
2017-01-29 05:45:43 -06:00
2018-11-21 23:33:10 +00:00
2018-06-08 20:57:16 +02:00
2018-07-20 18:48:37 +00:00
2017-08-25 14:08:11 +02:00
2018-09-29 20:51:11 -04:00
2017-07-23 12:56:04 +03:00
2018-10-28 14:08:01 +01:00
2019-04-29 14:05:50 +02:00
2017-09-29 15:01:21 +01:00
2018-09-07 20:35:17 +02:00
2019-03-18 09:56:27 +01:00
2019-03-20 00:01:45 +01:00
2019-05-12 03:20:44 +02:00
2019-05-10 08:12:27 +02:00