]> granicus.if.org Git - sudo/commitdiff
Ignore the syslog facility for systems w/ old syslog like Ultrix.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 15 Oct 1999 20:37:04 +0000 (20:37 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 15 Oct 1999 20:37:04 +0000 (20:37 +0000)
defaults.c

index bde4823fa47d61271d9525d03c453b3fe7b47780..d54039cf955110b391ed9c1ccd0ca5e5edfb3b62 100644 (file)
@@ -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);
 }