diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-12-11 19:28:29 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-12-11 19:28:29 +0000 |
commit | 4ed17829ac088b568c166e2cb7d51d553231a247 (patch) | |
tree | ef37ca7b3d59e170cbad37b4244a97abaeca1a01 | |
parent | b2356f6de94820291f35d63943a622708546b59c (diff) | |
download | busybox-w32-4ed17829ac088b568c166e2cb7d51d553231a247.tar.gz busybox-w32-4ed17829ac088b568c166e2cb7d51d553231a247.tar.bz2 busybox-w32-4ed17829ac088b568c166e2cb7d51d553231a247.zip |
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.
-rw-r--r-- | sysklogd/syslogd.c | 6 | ||||
-rw-r--r-- | syslogd.c | 6 |
2 files changed, 12 insertions, 0 deletions
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) | |||
521 | } | 521 | } |
522 | } | 522 | } |
523 | 523 | ||
524 | #ifdef BB_FEATURE_REMOTE_LOG | ||
525 | /* If they have not specified remote logging, then log locally */ | ||
526 | if (doRemoteLog == FALSE) | ||
527 | local_logging = TRUE; | ||
528 | #endif | ||
529 | |||
524 | /* Store away localhost's name before the fork */ | 530 | /* Store away localhost's name before the fork */ |
525 | gethostname(LocalHostName, sizeof(LocalHostName)); | 531 | gethostname(LocalHostName, sizeof(LocalHostName)); |
526 | if ((p = strchr(LocalHostName, '.'))) { | 532 | if ((p = strchr(LocalHostName, '.'))) { |
@@ -521,6 +521,12 @@ extern int syslogd_main(int argc, char **argv) | |||
521 | } | 521 | } |
522 | } | 522 | } |
523 | 523 | ||
524 | #ifdef BB_FEATURE_REMOTE_LOG | ||
525 | /* If they have not specified remote logging, then log locally */ | ||
526 | if (doRemoteLog == FALSE) | ||
527 | local_logging = TRUE; | ||
528 | #endif | ||
529 | |||
524 | /* Store away localhost's name before the fork */ | 530 | /* Store away localhost's name before the fork */ |
525 | gethostname(LocalHostName, sizeof(LocalHostName)); | 531 | gethostname(LocalHostName, sizeof(LocalHostName)); |
526 | if ((p = strchr(LocalHostName, '.'))) { | 532 | if ((p = strchr(LocalHostName, '.'))) { |