From: Todd C. Miller Date: Sat, 13 Mar 1999 18:37:57 +0000 (+0000) Subject: shost must be set before log functions are called #ifdef HOST_IN_LOG X-Git-Tag: SUDO_1_5_9~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c74286542bf7e67e64810af5ba5a21dbdd20c05b;p=sudo shost must be set before log functions are called #ifdef HOST_IN_LOG --- diff --git a/sudo.c b/sudo.c index 260c35abd..718ef6156 100644 --- a/sudo.c +++ b/sudo.c @@ -437,6 +437,13 @@ static void load_globals(sudo_mode) char *lrealm; #endif /* HAVE_KERB5 */ +#ifdef HOST_IN_LOG + /* + * Logging routines may use shost so set to a dummy value for now. + */ + shost = strcpy(host, "localhost"); +#endif + /* * Get a local copy of the user's struct passwd with the shadow password * if necesary. It is assumed that euid is 0 at this point so we