Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
293f9f2a
Commit
293f9f2a
authored
Jan 24, 2004
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(main): Restore errno from saved_errno,
so the error message comes from socket_status.
parent
51e473ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
lib-src/emacsclient.c
lib-src/emacsclient.c
+4
-0
No files found.
lib-src/emacsclient.c
View file @
293f9f2a
...
...
@@ -388,12 +388,14 @@ main (argc, argv)
that init_editfns uses to set the global Vuser_full_name. */
char
*
user_name
=
(
char
*
)
getenv
(
"LOGNAME"
);
if
(
!
user_name
)
user_name
=
(
char
*
)
getenv
(
"USER"
);
if
(
user_name
)
{
struct
passwd
*
pw
=
getpwnam
(
user_name
);
if
(
pw
&&
(
pw
->
pw_uid
!=
geteuid
()))
{
/* We're running under su, apparently. */
...
...
@@ -412,6 +414,8 @@ main (argc, argv)
sock_status
=
socket_status
(
server
.
sun_path
);
saved_errno
=
errno
;
}
else
errno
=
saved_errno
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment