Ensure that name_server_blacklist works for more than one option.
authorRoy Marples <roy@marples.name>
Fri, 9 May 2014 09:10:59 +0000 (09:10 +0000)
committerRoy Marples <roy@marples.name>
Fri, 9 May 2014 09:10:59 +0000 (09:10 +0000)
Thanks to Frederic Barthelery.

resolvconf.in

index d66317dc94857d36f32fca3a87e8d7c428cb2149..13dd95541b863fccab4a1806d131d801a1f93641 100644 (file)
@@ -381,7 +381,7 @@ make_vars()
                                        case ",$newns," in
                                        *,${ns%%,*},*) ;;
                                        *) list_remove name_server_blacklist \
-                                               "$ns" >/dev/null \
+                                               "${ns%%,*}" >/dev/null \
                                        && newns="$newns${newns:+,}${ns%%,*}";;
                                        esac
                                        [ "$ns" = "${ns#*,}" ] && break