diff options
author | Roy Marples <uberlord@gentoo.org> | 2006-05-23 13:03:28 +0000 |
---|---|---|
committer | Roy Marples <uberlord@gentoo.org> | 2006-05-23 13:03:28 +0000 |
commit | c795244693e6ffc5d856542911bc73261082b90f (patch) | |
tree | 038cc918b3d18ea56f949a3b46929c4712562c84 /net-misc/dhcp/files | |
parent | Add patch from Martin Schlemmer (azarah) to fix bug #134100 (parallel make is... (diff) | |
download | historical-c795244693e6ffc5d856542911bc73261082b90f.tar.gz historical-c795244693e6ffc5d856542911bc73261082b90f.tar.bz2 historical-c795244693e6ffc5d856542911bc73261082b90f.zip |
dhclient-script now works with invalid, RFC violating but sometimes used
space seperated domain names, #134101 thanks to Jan Spitalnik.
Package-Manager: portage-2.1_rc2
Diffstat (limited to 'net-misc/dhcp/files')
-rw-r--r-- | net-misc/dhcp/files/dhcp-3.0.3-dhclient-resolvconf.patch | 22 | ||||
-rw-r--r-- | net-misc/dhcp/files/digest-dhcp-3.0.3-r9 | 3 |
2 files changed, 14 insertions, 11 deletions
diff --git a/net-misc/dhcp/files/dhcp-3.0.3-dhclient-resolvconf.patch b/net-misc/dhcp/files/dhcp-3.0.3-dhclient-resolvconf.patch index 466697cf63aa..fac6b26a9723 100644 --- a/net-misc/dhcp/files/dhcp-3.0.3-dhclient-resolvconf.patch +++ b/net-misc/dhcp/files/dhcp-3.0.3-dhclient-resolvconf.patch @@ -10,9 +10,9 @@ - echo nameserver $nameserver >>/etc/resolv.conf - done + if [ x$PEER_DNS = x ] || [ x$PEER_DNS = xyes ]; then -+ if [ x$new_domain_name != x ] || [ x$new_domain_name_servers != x ]; then ++ if [ "x$new_domain_name" != x ] || [ "x$new_domain_name_servers" != x ]; then + conf="# Generated by dhclient for interface $interface\n" -+ if [ x$new_domain_name != x ]; then ++ if [ "x$new_domain_name" != x ]; then + conf="${conf}search $new_domain_name\n" + fi + for nameserver in $new_domain_name_servers; do @@ -46,9 +46,9 @@ - ( touch /etc/resolv.conf ) - exit_status=$? + if [ x$PEER_DNS = x ] || [ x$PEER_DNS = xyes ]; then -+ if [ x$new_domain_name != x ] || [ x$new_domain_name_servers != x ]; then ++ if [ "x$new_domain_name" != x ] || [ "x$new_domain_name_servers" != x ]; then + conf="# Generated by dhclient for interface $interface\n" -+ if [ x$new_domain_name != x ]; then ++ if [ "x$new_domain_name" != x ]; then + conf="${conf}search $new_domain_name\n" fi - fi @@ -81,9 +81,9 @@ - echo nameserver $nameserver >>/etc/resolv.conf - done + if [ x$PEER_DNS = x ] || [ x$PEER_DNS = xyes ]; then -+ if [ x$new_domain_name != x ] || [ x$new_domain_name_servers != x ]; then ++ if [ "x$new_domain_name" != x ] || [ "x$new_domain_name_servers" != x ]; then + conf="# Generated by dhclient for interface $interface\n" -+ if [ x$new_domain_name != x ]; then ++ if [ "x$new_domain_name" != x ]; then + conf="${conf}search $new_domain_name\n" + fi + for nameserver in $new_domain_name_servers; do @@ -111,9 +111,9 @@ - echo nameserver $nameserver >>/etc/resolv.conf - done + if [ x$PEER_DNS = x ] || [ x$PEER_DNS = xyes ]; then -+ if [ x$new_domain_name != x ] || [ x$new_domain_name_servers != x ]; then ++ if [ "x$new_domain_name" != x ] || [ "x$new_domain_name_servers" != x ]; then + conf="# Generated by dhclient for interface $interface\n" -+ if [ x$new_domain_name != x ]; then ++ if [ "x$new_domain_name" != x ]; then + conf="${conf}search $new_domain_name\n" + fi + for nameserver in $new_domain_name_servers; do @@ -141,7 +141,7 @@ - echo nameserver $nameserver >>/etc/resolv.conf - done + if [ x$PEER_DNS = x ] || [ x$PEER_DNS = xyes ]; then -+ if [ x$new_domain_name != x ] || [ x$new_domain_name_servers != x ]; then ++ if [ "x$new_domain_name" != x ] || [ "x$new_domain_name_servers" != x ]; then + conf="# Generated by dhclient for interface $interface\n" + if [ x$new_domain_name != x ]; then + conf="${conf}search $new_domain_name\n" @@ -171,9 +171,9 @@ - echo nameserver $nameserver >>/etc/resolv.conf - done + if [ x$PEER_DNS = x ] || [ x$PEER_DNS = xyes ]; then -+ if [ x$new_domain_name != x ] || [ x$new_domain_name_servers != x ]; then ++ if [ "x$new_domain_name" != x ] || [ "x$new_domain_name_servers" != x ]; then + conf="# Generated by dhclient for interface $interface\n" -+ if [ x$new_domain_name != x ]; then ++ if [ "x$new_domain_name" != x ]; then + conf="${conf}search $new_domain_name\n" + fi + for nameserver in $new_domain_name_servers; do diff --git a/net-misc/dhcp/files/digest-dhcp-3.0.3-r9 b/net-misc/dhcp/files/digest-dhcp-3.0.3-r9 new file mode 100644 index 000000000000..bfdf4cb56303 --- /dev/null +++ b/net-misc/dhcp/files/digest-dhcp-3.0.3-r9 @@ -0,0 +1,3 @@ +MD5 f91416a0b8ed3fd0601688cf0b7df58f dhcp-3.0.3.tar.gz 870240 +RMD160 bcbd1f8b49f17809a3473103a7b5e096c45855d7 dhcp-3.0.3.tar.gz 870240 +SHA256 c96bcd884dde06c22a709cfb9e84f7e32f6577dcd52aa7f12186aa22b5e63afe dhcp-3.0.3.tar.gz 870240 |