changeset 27475:d44d90480852

*** empty log message ***
author Gerd Moellmann <gerd@gnu.org>
date Fri, 28 Jan 2000 15:02:45 +0000
parents ed3668c0295a
children e732cf6d8d12
files etc/NEWS lib-src/ChangeLog
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/etc/NEWS	Fri Jan 28 15:02:20 2000 +0000
+++ b/etc/NEWS	Fri Jan 28 15:02:45 2000 +0000
@@ -5451,6 +5451,11 @@
 
 ** Changes to the emacsclient program
 
+*** If a socket can't be found, and environment variables LOGNAME or
+USER are set, emacsclient now looks for a socket based on the UID
+associated with the name.  That is an emacsclient running as root
+can connect to an Emacs server started by a non-root user.
+
 *** The emacsclient program now accepts an option --no-wait which tells
 it to return immediately without waiting for you to "finish" the
 buffer in Emacs.
--- a/lib-src/ChangeLog	Fri Jan 28 15:02:20 2000 +0000
+++ b/lib-src/ChangeLog	Fri Jan 28 15:02:45 2000 +0000
@@ -1,3 +1,9 @@
+2000-01-28  Eric Hanchrow <offby1@blarg.net>
+
+	* emacsclient.c (socket_status): New function.
+	(main): if $LOGNAME or $USER exist and differ from our euid, look
+	for a socket based on the UID associated with the name.
+
 2000-01-12  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
 
 	* emacsclient.c: Add option -a EDITOR and environment variable