Package: rdnssd
Version: 1.0.1-1+b1
Severity: normal
Tags: patch ipv6

The merge-hook script overwrites /etc/resolv.conf when
/sbin/resolvconf is not installed, thereby erasing additional
entries in this file such as "name" etc.

The following patch makes it preserve this information.

I don't know if this problem also occurs (or how to fix it) when
/sbin/resolvconf is installed since I don't use it.

--- /etc/rdnssd/merge-hook
+++ /etc/rdnssd/merge-hook
@@ -23,6 +23,7 @@
 if [ -x /sbin/resolvconf ]; then
        /sbin/resolvconf -a 000.rdnssd < "$INPUT"
 else
-       cat -- "$INPUT" > "/etc/resolv.conf"
+       orig=`grep -v ^nameserver "/etc/resolv.conf"`
+       { echo "$orig"; cat -- "$INPUT"; } > "/etc/resolv.conf"
 fi
 

-- System Information:
Debian Release: 7.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 
'stable')
Architecture: i386 (i686)


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to