From: Roy Marples Date: Thu, 19 Nov 2009 21:31:41 +0000 (+0000) Subject: dhcpcd should log to syslog even with quiet. X-Git-Tag: v5.1.4~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6986f2ec49696b9736047f9c2fd10c60b3968d6d;p=thirdparty%2Fdhcpcd.git dhcpcd should log to syslog even with quiet. --- diff --git a/dhcpcd.c b/dhcpcd.c index 6988be17..20caf86c 100644 --- a/dhcpcd.c +++ b/dhcpcd.c @@ -1630,7 +1630,7 @@ main(int argc, char **argv) if (options & DHCPCD_DEBUG) setlogmask(LOG_UPTO(LOG_DEBUG)); else if (options & DHCPCD_QUIET) - setlogmask(LOG_UPTO(LOG_WARNING)); + close(STDERR_FILENO); if (!(options & DHCPCD_TEST)) { /* If we have any other args, we should run as a single dhcpcd