From 5d3b86d84440613efdcab7e831b6ef4a3f0a8b60 Mon Sep 17 00:00:00 2001 From: Jiri Popelka Date: Thu, 23 Dec 2010 15:50:49 +0100 Subject: [PATCH] dhclient-script: added missing quotation marks --- dhclient-script | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dhclient-script b/dhclient-script index debed71..29c8b72 100644 --- a/dhclient-script +++ b/dhclient-script @@ -389,7 +389,7 @@ dhconfig() { unset IFS ((pads=4-${#target_arr[@]})) for j in $(seq $pads); do - target=${target}".0" + target="${target}.0" done # Client MUST zero any bits in the subnet number where the corresponding bit in the mask is zero. @@ -557,8 +557,8 @@ add_ipv6_addr_with_DAD() { } dh6config() { - if [ -n ${old_ip6_prefix} ] || - [ -n ${new_ip6_prefix} ]; then + if [ -n "${old_ip6_prefix}" ] || + [ -n "${new_ip6_prefix}" ]; then echo Prefix ${reason} old=${old_ip6_prefix} new=${new_ip6_prefix} exit_with_hooks 0 fi