mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-25 07:28:20 +00:00
emacsclient takes more care about XDG_RUNTIME_DIR
* lib-src/emacsclient.c (set_local_socket): Revert to the Emacs 27 behavior of not trying TMPDIR if XDG_RUNTIME_DIR is set. This is one of the suggestions made by Jim Porter and independently by Ulrich Mueller in Bug#51327.
This commit is contained in:
parent
26fb4168b8
commit
dda6337066
@ -1456,7 +1456,6 @@ set_local_socket (char const *server_name)
|
||||
else
|
||||
{
|
||||
/* socket_name is a file name component. */
|
||||
sock_status = ENOENT;
|
||||
char const *xdg_runtime_dir = egetenv ("XDG_RUNTIME_DIR");
|
||||
if (xdg_runtime_dir)
|
||||
{
|
||||
@ -1466,7 +1465,7 @@ set_local_socket (char const *server_name)
|
||||
? connect_socket (AT_FDCWD, sockname, s, 0)
|
||||
: ENAMETOOLONG);
|
||||
}
|
||||
if (sock_status == ENOENT)
|
||||
else
|
||||
{
|
||||
char const *tmpdir = egetenv ("TMPDIR");
|
||||
if (tmpdir)
|
||||
|
Loading…
Reference in New Issue
Block a user