Ensure newlines appear.
authorRoy Marples <roy@marples.name>
Thu, 6 Mar 2008 19:24:00 +0000 (19:24 +0000)
committerRoy Marples <roy@marples.name>
Thu, 6 Mar 2008 19:24:00 +0000 (19:24 +0000)
libc.in

diff --git a/libc.in b/libc.in
index b7a1abdb9f5b3f0b06bd878e7e55814614a1dbf1..b00ba8bea57aba341b687cfaea711983f4b0a491 100755 (executable)
--- a/libc.in
+++ b/libc.in
@@ -122,7 +122,7 @@ if [ -e "${BASE}" ]; then
                -e '/^[[:space:]]*nameserver[[:space:]]*.*/d' \
                -e '/^[[:space:]]*search[[:space:]]*.*/d' \
                -e '/^[[:space:]]*domain[[:space:]]*.*/d' \
-               "${BASE}")" 
+               "${BASE}")\n
 fi
 
 # We don't know we're using GNU sed, so we do it like this
@@ -133,7 +133,7 @@ NEWCONF="${NEWCONF}$(echo "${RESOLVCONFS}" | sed -e '/^[[:space:]]*$/d' \
        -e '/^[[:space:]]*domain[[:space:]]*.*/d' \
        )"
 [ -e "${SYSCONFDIR}"/resolv.conf.d/tail ] \
-       && NEWCONF="${NEWCONF}$(cat "${SYSCONFDIR}"/resolv.conf.d/tail)"
+       && NEWCONF="${NEWCONF}$(cat "${SYSCONFDIR}"/resolv.conf.d/tail)\n"
 
 # Check if the file has actually changed or not
 if [ -e "${RESOLVCONF}" ]; then