From: Eric Andersen Date: Mon, 11 Dec 2000 19:28:29 +0000 (-0000) Subject: Fix a thinko -- when REMOTE_LOG support is compiled in, X-Git-Tag: 0_48~26 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4ed17829ac088b568c166e2cb7d51d553231a247;p=oweals%2Fbusybox.git Fix a thinko -- when REMOTE_LOG support is compiled in, but the user has not specified remote logging, then be sure to log locally... duh. --- diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index 2d5e52f25..7501380f6 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c @@ -521,6 +521,12 @@ extern int syslogd_main(int argc, char **argv) } } +#ifdef BB_FEATURE_REMOTE_LOG + /* If they have not specified remote logging, then log locally */ + if (doRemoteLog == FALSE) + local_logging = TRUE; +#endif + /* Store away localhost's name before the fork */ gethostname(LocalHostName, sizeof(LocalHostName)); if ((p = strchr(LocalHostName, '.'))) { diff --git a/syslogd.c b/syslogd.c index 2d5e52f25..7501380f6 100644 --- a/syslogd.c +++ b/syslogd.c @@ -521,6 +521,12 @@ extern int syslogd_main(int argc, char **argv) } } +#ifdef BB_FEATURE_REMOTE_LOG + /* If they have not specified remote logging, then log locally */ + if (doRemoteLog == FALSE) + local_logging = TRUE; +#endif + /* Store away localhost's name before the fork */ gethostname(LocalHostName, sizeof(LocalHostName)); if ((p = strchr(LocalHostName, '.'))) {