From: Todd C. Miller Date: Fri, 15 Oct 1999 20:37:04 +0000 (+0000) Subject: Ignore the syslog facility for systems w/ old syslog like Ultrix. X-Git-Tag: SUDO_1_6_0~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=041188d02f6d2240434f7f53a40261e0519196c9;p=sudo Ignore the syslog facility for systems w/ old syslog like Ultrix. --- diff --git a/defaults.c b/defaults.c index bde4823fa..d54039cf9 100644 --- a/defaults.c +++ b/defaults.c @@ -64,6 +64,7 @@ struct strmap { int num; }; +#ifdef LOG_NFACILITIES static struct strmap facilities[] = { #ifdef LOG_AUTHPRIV { "authpriv", LOG_AUTHPRIV }, @@ -81,6 +82,7 @@ static struct strmap facilities[] = { { "local7", LOG_LOCAL7 }, { NULL, -1 } }; +#endif /* LOG_NFACILITIES */ static struct strmap priorities[] = { { "alert", LOG_ALERT }, @@ -591,6 +593,7 @@ store_syslogfac(val, def, op) return(TRUE); } +#ifdef LOG_NFACILITIES for (fac = facilities; fac->name && strcmp(val, fac->name); fac++) ; if (fac->name == NULL) @@ -601,6 +604,7 @@ store_syslogfac(val, def, op) free(def->sd_un.str); def->sd_un.str = estrdup(fac->name); sudo_defs_table[I_LOGFAC].sd_un.ival = fac->num; +#endif /* LOG_NFACILITIES */ return(TRUE); }