[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dhcp-client
Subject:    Fix permission in Linux client script
From:       Joerg Mayer <jmayer () loplof ! de>
Date:       2002-04-22 6:25:45
[Download RAW message or body]

   *** From dhcp-client -- To unsubscribe, see the end of this message. ***

Hello,

the attached patchlet make sure, that /etc/resolv.conf is created with
the right permissions. It doesn't make assumptions about roots umask
any more.

  Ciao
           Jörg
--
Joerg Mayer                                          <jmayer@loplof.de>
I found out that "pro" means "instead of" (as in proconsul). Now I know
what proactive means.


-- Attached file included as plaintext by Ecartis --

--- dhcp-3.0.1rc8/client/scripts/linux.distrib	Mon Apr 22 08:21:00 2002
+++ dhcp-3.0.1rc8/client/scripts/linux	Mon Apr 22 08:22:46 2002
@@ -25,6 +25,7 @@
 function make_resolv_conf() {
   if [ "x$new_domain_name" != x ] && [ x"$new_domain_name_servers" != x ]; then
     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


-----------------------------------------------------------------------
To unsubscribe from this list, visit http://www.isc.org/dhcp-lists.html
or send mail to dhcp-client-request@isc.org with the subject line of
'unsubscribe'.
-----------------------------------------------------------------------

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic