diff options
author | Cédric Krier <cedk@gentoo.org> | 2009-05-28 17:57:05 +0000 |
---|---|---|
committer | Cédric Krier <cedk@gentoo.org> | 2009-05-28 17:57:05 +0000 |
commit | b63383cef2b6dd26bedbafe5a5c48bb64bb809db (patch) | |
tree | a42c65f18157c6f234cc197e0b84fd288278f830 /net-misc/openvpn/files | |
parent | Fix alignment (bug #270867). (diff) | |
download | historical-b63383cef2b6dd26bedbafe5a5c48bb64bb809db.tar.gz historical-b63383cef2b6dd26bedbafe5a5c48bb64bb809db.tar.bz2 historical-b63383cef2b6dd26bedbafe5a5c48bb64bb809db.zip |
Fix invalid resolv.conf when DOMAIN is empty for bug #269614
Package-Manager: portage-2.1.6.11/cvs/Linux i686
Diffstat (limited to 'net-misc/openvpn/files')
-rwxr-xr-x | net-misc/openvpn/files/up.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net-misc/openvpn/files/up.sh b/net-misc/openvpn/files/up.sh index c47c34aabad4..4a8868702de5 100755 --- a/net-misc/openvpn/files/up.sh +++ b/net-misc/openvpn/files/up.sh @@ -43,7 +43,7 @@ if [ "${PEER_DNS}" != "no" ]; then DNS="# Generated by openvpn for interface ${dev}\n" if [ -n "${SEARCH}" ] ; then DNS="${DNS}search ${DOMAIN} ${SEARCH}\n" - else + elif [ -n "${DOMAIN}" ]; then DNS="${DNS}domain ${DOMAIN}\n" fi DNS="${DNS}${NS}" |