Package: isc-dhcp-client
Version: 4.2.2.dfsg.1-5+deb70u2
Severity: important
Tags: patch

Hi,

the dhclient-script.linux script refers to a variable named $alias_network_arg
which is not defined.
This is an oversight from previous changes ans should be changed to
${alias_subnet_mask:+/$alias_subnet_mask}

The attached patch should fix the issue.

Thanks for maintaining isc-dhcp in Debian
Peter

PS: the issue is also found in the newest version of isc-dhcp-client

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages isc-dhcp-client depends on:
ii  debianutils      4.3.2
ii  iproute          20120521-3
ii  isc-dhcp-common  4.2.2.dfsg.1-5+deb70u2
ii  libc6            2.13-35

isc-dhcp-client recommends no packages.

Versions of packages isc-dhcp-client suggests:
pn  avahi-autoipd  <none>
pn  resolvconf     <none>

-- Configuration Files:
/etc/dhcp/dhclient.conf changed [not included]

-- no debconf information
>From a2ab144a35a5d46fec32914780f5867c4127e047 Mon Sep 17 00:00:00 2001
From: Peter Marschall <[email protected]>
Date: Sun, 21 Oct 2012 12:59:15 +0200
Subject: [PATCH 1/2] dhclient-script.linux: fix undefined $alias_network_arg

Replace $alias_network_arg by the corresponding 'alternate value expansion'
expression ${alias_subnet_mask:+/$alias_subnet_mask} for the
EXPIRE|FAIL|RELEASE|STOP case.

It looks as it has been overlooked in f9819e4f161364dacdf8d1f983eec162ad22498c.

Signed-off-by: Peter Marschall <[email protected]>
---
 debian/dhclient-script.linux |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/dhclient-script.linux b/debian/dhclient-script.linux
index 21dfd20..a0d2680 100644
--- a/debian/dhclient-script.linux
+++ b/debian/dhclient-script.linux
@@ -280,7 +280,7 @@ case "$reason" in
 
         if [ -n "$alias_ip_address" ]; then
             # alias IP given => set it & add host route to it
-            ip -4 addr add ${alias_ip_address}${alias_network_arg} \
+            ip -4 addr add ${alias_ip_address}${alias_subnet_mask:+/$alias_subnet_mask} \
                 dev ${interface} label ${interface}:0
             ip -4 route add ${alias_ip_address} dev ${interface} >/dev/null 2>&1
         fi
-- 
1.7.10.4

Reply via email to