changeset 53497:189db7d9de05

(main): Fix socket name when using another user.
author Andreas Schwab <schwab@suse.de>
date Sun, 04 Jan 2004 16:41:43 +0000
parents 0b3832e278c4
children b58e2f67321b
files lib-src/emacsclient.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/emacsclient.c	Sun Jan 04 16:05:15 2004 +0000
+++ b/lib-src/emacsclient.c	Sun Jan 04 16:41:43 2004 +0000
@@ -391,7 +391,7 @@
 	    if (pw && (pw->pw_uid != geteuid ()))
 	      {
 		/* We're running under su, apparently. */
-		sprintf (server.sun_path, "/tmp/esrv%d-%s",
+		sprintf (server.sun_path, "/tmp/emacs%d-%s/server",
 			 (int) pw->pw_uid, system_name);
 		sock_status = socket_status (server.sun_path);
 	      }