aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog4
-rw-r--r--lib-src/emacsclient.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index 542761fda2f..0e6a568db49 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,7 @@
12004-01-04 Andreas Schwab <schwab@suse.de>
2
3 * emacsclient.c (main): Fix socket name when using another user.
4
12003-12-27 Paul Eggert <eggert@twinsun.com> 52003-12-27 Paul Eggert <eggert@twinsun.com>
2 6
3 * rcs2log (rlog_options): Append -rbranchtag if CVS/Tag indicates 7 * rcs2log (rlog_options): Append -rbranchtag if CVS/Tag indicates
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index f45ca56c0d3..d737b2a11eb 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -470,7 +470,7 @@ main (argc, argv)
470 if (pw && (pw->pw_uid != geteuid ())) 470 if (pw && (pw->pw_uid != geteuid ()))
471 { 471 {
472 /* We're running under su, apparently. */ 472 /* We're running under su, apparently. */
473 sprintf (server.sun_path, "/tmp/esrv%d-%s", 473 sprintf (server.sun_path, "/tmp/emacs%d-%s/server",
474 (int) pw->pw_uid, system_name); 474 (int) pw->pw_uid, system_name);
475 sock_status = socket_status (server.sun_path); 475 sock_status = socket_status (server.sun_path);
476 oerrno = errno; 476 oerrno = errno;