mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
This adds an undocumented -Q flag which cancels out any -q option that may be present in dhcpd_flags, avoiding the need for a fragile sed command. It also adds a comment explaining why we are running the check twice and what the -q and -Q are for. PR: 281701
12 lines
354 B
C
12 lines
354 B
C
--- server/dhcpd.c.orig 2022-09-28 14:39:15 UTC
|
|
+++ server/dhcpd.c
|
|
@@ -492,6 +492,9 @@ main(int argc, char **argv) {
|
|
cftest = 1;
|
|
lftest = 1;
|
|
log_perror = -1;
|
|
+ } else if (!strcmp (argv [i], "-Q")) {
|
|
+ quiet = 0;
|
|
+ quiet_interface_discovery = 0;
|
|
} else if (!strcmp (argv [i], "-q")) {
|
|
quiet = 1;
|
|
quiet_interface_discovery = 1;
|