changeset 2085:6d46f47e4f86 draft

Actually validate the search list.
author Roy Marples <roy@marples.name>
date Tue, 06 Aug 2013 11:34:08 +0000
parents 9796a72af9d8
children 9221c6f1a2ec
files dhcpcd-hooks/20-resolv.conf
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dhcpcd-hooks/20-resolv.conf	Fri Aug 02 20:12:22 2013 +0000
+++ b/dhcpcd-hooks/20-resolv.conf	Tue Aug 06 11:34:08 2013 +0000
@@ -115,7 +115,7 @@
 	if [ -n "$new_domain_search" -a \
 	    "$new_domain_search" != "$new_domain_name" ]
 	then
-		if valid_domainname_list; then
+		if valid_domainname_list $new_domain_search; then
 			conf="${conf}search $new_domain_search$NL"
 		else
 			syslog err "Invalid domain name in list: $new_domain_search"