Don't include errno in "unable to connect to log server" message.

There should be a more specific message, usually with an error
string, displayed earlier.
This commit is contained in:
Todd C. Miller
2021-05-12 12:19:44 -06:00
parent d9b8311122
commit 78849e6728

View File

@@ -1980,7 +1980,7 @@ log_server_open(struct log_details *details, struct timespec *now,
/* Connect to log first available log server. */
if (!log_server_connect(closure)) {
/* TODO: support offline logs if server unreachable */
sudo_warn("%s", U_("unable to connect to log server"));
sudo_warnx("%s", U_("unable to connect to log server"));
goto bad;
}