aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2006-02-10 18:56:29 +0000
committerBill Nottingham <notting@redhat.com>2006-02-10 18:56:29 +0000
commit826093e33db0e0ca81925eb3bec8c5411bce8053 (patch)
tree3c701d1bea824a191a2dd5852a0083220c0dc297 /sysconfig/network-scripts
parent858506a7cab3cfc3cc98072ef75ec80ada55bcc2 (diff)
downloadinitscripts-826093e33db0e0ca81925eb3bec8c5411bce8053.tar
initscripts-826093e33db0e0ca81925eb3bec8c5411bce8053.tar.gz
initscripts-826093e33db0e0ca81925eb3bec8c5411bce8053.tar.bz2
initscripts-826093e33db0e0ca81925eb3bec8c5411bce8053.tar.xz
initscripts-826093e33db0e0ca81925eb3bec8c5411bce8053.zip
fix loop when change_resolve_conf is supplied the same DNS address
multiple times (Michael Reinsch, via <oblin@mandriva.com>)
Diffstat (limited to 'sysconfig/network-scripts')
-rw-r--r--sysconfig/network-scripts/network-functions1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index c9fc2cc9..92800149 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -378,6 +378,7 @@ change_resolv_conf ()
do
if [[ "$s" = *$1* ]]; then
shift;
+ let n_args=n_args-1;
continue;
fi;
s="$s$1";