]> The Tcpdump Group git mirrors - libpcap/commitdiff
Default to logging to the standard error, not the system log.
authorGuy Harris <[email protected]>
Mon, 7 Jan 2019 22:24:42 +0000 (14:24 -0800)
committerGuy Harris <[email protected]>
Mon, 7 Jan 2019 22:24:42 +0000 (14:24 -0800)
Only if it thinks it's being run as a daemon should rpcapd log to the
system log.

rpcapd/rpcapd.c

index d1f158230ab04e16f94cbf5274993971cb0f09cf..1aa83758ca59ea3fe909205bee39a5606898b31c 100644 (file)
@@ -171,7 +171,7 @@ static void printusage(void)
 int main(int argc, char *argv[])
 {
        char savefile[MAX_LINE + 1];            // name of the file on which we have to save the configuration
-       int log_to_systemlog = 1;               // Non-zero if we should log to the "system log" rather than the standard error
+       int log_to_systemlog = 0;               // Non-zero if we should log to the "system log" rather than the standard error
        int isdaemon = 0;                       // Non-zero if the user wants to run this program as a daemon
 #ifndef _WIN32
        int isrunbyinetd = 0;                   // Non-zero if this is being run by inetd or something inetd-like