ports/net/isc-dhcp44-server/files/patch-server_dhcpd.c
Dag-Erling Smørgrav 6725d10536 net/isc-dhcp44-server: Fix checkconfig command.
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
2024-10-02 12:37:30 +02:00

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;