isc-dhcp: fix spacing on forced parameters
authorPhilip Prindeville <[email protected]>
Mon, 4 Aug 2025 01:40:44 +0000 (19:40 -0600)
committerPhilip Prindeville <[email protected]>
Fri, 15 Aug 2025 03:43:00 +0000 (21:43 -0600)
If there's a "forced_send" option, then put spaces between multiple
parameter codes.

Signed-off-by: Philip Prindeville <[email protected]>
net/isc-dhcp/files/dhcpd.init

index f67ed9f9b52a445009ea3b1045f97f3d93efef3d..7f32e41f4ceec77cbd8982108d6ffce1b3d30e5b 100755 (executable)
@@ -315,17 +315,17 @@ static_host_add() {
        for option in ${force_send//,/ }; do
                case "$option" in
                hostname)
-                       append extra_options "0c" "," ;;
+                       append extra_options "0c" ", " ;;
                domain-name)
-                       append extra_options "0f" "," ;;
+                       append extra_options "0f" ", " ;;
                renewal-time)
-                       append extra_options "3a" "," ;;
+                       append extra_options "3a" ", " ;;
                rebinding-time)
-                       append extra_options "3b" "," ;;
+                       append extra_options "3b" ", " ;;
                fqdn)
-                       append extra_options "51" "," ;;
+                       append extra_options "51" ", " ;;
                routes)
-                       append extra_options "79" "," ;;
+                       append extra_options "79" ", " ;;
                *)
                        echo "unknown option: $option" >&2 ;;
                esac