aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/NEWS8
-rw-r--r--lib-src/emacsclient.c11
2 files changed, 10 insertions, 9 deletions
diff --git a/etc/NEWS b/etc/NEWS
index bbcd7a5747a..2f07abb4eb5 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -119,13 +119,19 @@ the new version of the file again.)
119 119
120* Changes in Emacs 27.1 120* Changes in Emacs 27.1
121 121
122** emacsclient
123
122+++ 124+++
123** emacsclient now supports the 'EMACS_SOCKET_NAME' environment variable. 125*** emacsclient now supports the 'EMACS_SOCKET_NAME' environment variable.
124The behavior is identical to 'EMACS_SERVER_FILE', in that the 126The behavior is identical to 'EMACS_SERVER_FILE', in that the
125command-line value specified via '--socket-name' will override the 127command-line value specified via '--socket-name' will override the
126environment, and the natural default to TMPDIR, then "/tmp", continues 128environment, and the natural default to TMPDIR, then "/tmp", continues
127to apply. 129to apply.
128 130
131---
132*** When run by root, emacsclient no longer connects to non-root sockets.
133(Instead you can use Tramp methods to run root commands in a non-root Emacs.)
134
129+++ 135+++
130** The function 'read-passwd' uses '*' as default character to hide passwords. 136** The function 'read-passwd' uses '*' as default character to hide passwords.
131 137
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index 42b8dd6227b..6fbc2300958 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -1365,14 +1365,9 @@ set_local_socket (const char *local_socket_name)
1365 switch (sock_status) 1365 switch (sock_status)
1366 { 1366 {
1367 case 1: 1367 case 1:
1368 /* There's a socket, but it isn't owned by us. This is OK if 1368 /* There's a socket, but it isn't owned by us. */
1369 we are root. */ 1369 message (true, "%s: Invalid socket owner\n", progname);
1370 if (0 != geteuid ()) 1370 return INVALID_SOCKET;
1371 {
1372 message (true, "%s: Invalid socket owner\n", progname);
1373 return INVALID_SOCKET;
1374 }
1375 break;
1376 1371
1377 case 2: 1372 case 2:
1378 /* `stat' failed */ 1373 /* `stat' failed */