]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Don't log anything when printing the pidfile.
authorRoy Marples <roy@marples.name>
Sat, 22 Apr 2017 14:41:22 +0000 (15:41 +0100)
committerRoy Marples <roy@marples.name>
Sat, 22 Apr 2017 14:41:22 +0000 (15:41 +0100)
src/dhcpcd.c

index 332e3ec3ca6a387d29aeeb39275486f9cd9d1f17..bc79610e14e2e856224089f63a87ab7d4e8af49e 100644 (file)
@@ -1510,6 +1510,7 @@ main(int argc, char **argv)
 #endif
                case 'P':
                        ctx.options |= DHCPCD_PRINT_PIDFILE;
+                       logopts &= ~(LOGERR_LOG | LOGERR_ERR);
                        break;
                case 'T':
                        i = 1;