OSDN Git Service

Fix a thinko -- when REMOTE_LOG support is compiled in,
authorEric Andersen <andersen@codepoet.org>
Mon, 11 Dec 2000 19:28:29 +0000 (19:28 -0000)
committerEric Andersen <andersen@codepoet.org>
Mon, 11 Dec 2000 19:28:29 +0000 (19:28 -0000)
but the user has not specified remote logging, then
be sure to log locally... duh.

sysklogd/syslogd.c
syslogd.c

index 2d5e52f..7501380 100644 (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, '.'))) {
index 2d5e52f..7501380 100644 (file)
--- 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, '.'))) {