]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Chmod resolv.conf in case umask is bogus
authorTed Lemon <source@isc.org>
Tue, 16 Sep 1997 18:10:50 +0000 (18:10 +0000)
committerTed Lemon <source@isc.org>
Tue, 16 Sep 1997 18:10:50 +0000 (18:10 +0000)
client/scripts/netbsd

index 819bfd2415353a6c9ddacf640a772afe88248f25..e5d3df2cbb40afb29b0518cfb23e4ebedda24463 100755 (executable)
@@ -68,6 +68,7 @@ if [ x$reason = xBOUND ] || [ x$reason = xRENEW ] || \
     route add $alias_ip_address 127.0.0.1
   fi
   echo search $new_domain_name >/etc/resolv.conf
+  chmod 644 /etc/resolv.conf
   for nameserver in $new_domain_name_servers; do
     echo nameserver $nameserver >>/etc/resolv.conf
   done
@@ -115,6 +116,7 @@ if [ x$reason = xTIMEOUT ]; then
       route add default $router >/dev/null 2>&1
     done
     echo search $new_domain_name >/etc/resolv.conf.std
+    chmod 644 /etc/resolv.conf.std
     for nameserver in $new_domain_name_servers; do
       echo nameserver $nameserver >>/etc/resolv.conf.std
     done