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.
This commit is contained in:
Eric Andersen 2000-12-11 19:28:29 +00:00
parent b2356f6de9
commit 4ed17829ac
2 changed files with 12 additions and 0 deletions

View File

@ -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 */ /* Store away localhost's name before the fork */
gethostname(LocalHostName, sizeof(LocalHostName)); gethostname(LocalHostName, sizeof(LocalHostName));
if ((p = strchr(LocalHostName, '.'))) { if ((p = strchr(LocalHostName, '.'))) {

View File

@ -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 */ /* Store away localhost's name before the fork */
gethostname(LocalHostName, sizeof(LocalHostName)); gethostname(LocalHostName, sizeof(LocalHostName));
if ((p = strchr(LocalHostName, '.'))) { if ((p = strchr(LocalHostName, '.'))) {