Package: dhcp-client
Version: 2.0pl5-19.1
Severity: important
Tags: patch

Line 52 of /etc/dhclient-script writes "search $new_domain_name" to
/etc/resolv.conf. However, if $new_domain_name is emtpy, it merely
writes the word "search" which breaks /etc/resolv.conf and causes the
`host` command to stop working. Following is a (simple) patch to fix this
issue.

Cheers,
Benjamin


---- dhclient.patch ----


--- /etc/dhclient-script        2004-05-18 07:56:10.000000000 -0400
+++ dhclient-script     2005-08-12 23:38:30.000000000 -0400
@@ -49,7 +49,9 @@
   }
 else
   make_resolv_conf() {
-    echo search $new_domain_name >/etc/resolv.conf
+    if [ -n $new_domain_name ]; then
+       echo search $new_domain_name >/etc/resolv.conf
+    fi
     for nameserver in $new_domain_name_servers; do
       echo nameserver $nameserver >>/etc/resolv.conf
     done


-----End Patch-------


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12.2
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages dhcp-client depends on:
ii  libc6                         2.3.5-3    GNU C Library: Shared libraries an

dhcp-client recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to