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:
parent
b2356f6de9
commit
4ed17829ac
@ -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, '.'))) {
|
||||||
|
@ -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, '.'))) {
|
||||||
|
Loading…
Reference in New Issue
Block a user