mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(main): Fix socket name when using another user.
This commit is contained in:
parent
551150794a
commit
e822882420
2 changed files with 5 additions and 1 deletions
|
|
@ -1,3 +1,7 @@
|
|||
2004-01-04 Andreas Schwab <schwab@suse.de>
|
||||
|
||||
* emacsclient.c (main): Fix socket name when using another user.
|
||||
|
||||
2003-12-27 Paul Eggert <eggert@twinsun.com>
|
||||
|
||||
* rcs2log (rlog_options): Append -rbranchtag if CVS/Tag indicates
|
||||
|
|
|
|||
|
|
@ -391,7 +391,7 @@ main (argc, argv)
|
|||
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue