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 committed 2000-12-11 19:28:29 +00:00
1 parent b2356f6de9
commit 4ed17829ac
2 files changed
+12

No files matched your search

+6
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 */
gethostname(LocalHostName, sizeof(LocalHostName));
if ((p = strchr(LocalHostName, '.'))) {
+6
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 */
gethostname(LocalHostName, sizeof(LocalHostName));
if ((p = strchr(LocalHostName, '.'))) {