Package: dhcp3-server
Version: 3.0.1-1
Severity: important
Tags: patch
It is possible for network interface names to contain slashes (/) in their
names (e.g. /dev/net/tun). That breaks the sed regexp in postinst.
Patch attached.
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.27-1-386
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ANSI_X3.4-1968) (ignored: LC_ALL
set to C)
Versions of packages dhcp3-server depends on:
ii debconf 1.4.41 Debian configuration management sy
ii debianutils 2.11.2 Miscellaneous utilities specific t
ii dhcp3-common 3.0.1-1 Common files used by all the dhcp3
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
-- debconf information excluded
--- dhcp3-3.0.1/debian/dhcp3-server.postinst~ 2005-01-14 04:25:11.000000000
+0100
+++ dhcp3-3.0.1/debian/dhcp3-server.postinst 2005-01-14 04:25:59.000000000
+0100
@@ -55,7 +55,7 @@
INTERFACES="${RET}"
TMPFILE=`mktemp -q ${INITCONFFILE}.new.XXXXXX`
-sed -e
"s/^[[:space:]]*INTERFACES[[:space:]]*=.*/INTERFACES=\"${INTERFACES}\"/" \
+sed -e
"s,^[[:space:]]*INTERFACES[[:space:]]*=.*,INTERFACES=\"${INTERFACES}\"," \
<${INITCONFFILE} >${TMPFILE}
cp ${TMPFILE} ${INITCONFFILE}
rm ${TMPFILE}