SOURCES: resolvconf.init - sane umask also for reload target

glen glen at pld-linux.org
Mon Nov 24 20:25:15 CET 2008


Author: glen                         Date: Mon Nov 24 19:25:15 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- sane umask also for reload target

---- Files affected:
SOURCES:
   resolvconf.init (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SOURCES/resolvconf.init
diff -u SOURCES/resolvconf.init:1.4 SOURCES/resolvconf.init:1.5
--- SOURCES/resolvconf.init:1.4	Fri Feb  8 22:03:50 2008
+++ SOURCES/resolvconf.init	Mon Nov 24 20:25:09 2008
@@ -17,6 +17,9 @@
 
 . /etc/rc.d/init.d/functions
 
+# need resolv.conf created with sane permission
+umask 022
+
 update() {
 	[ -e "$ENABLE_UPDATES_FLAGFILE" ] || return 0
 	cd "$IFACE_DIR"
@@ -38,7 +41,6 @@
 	# If you want to update the resolv.conf file then use "reload".
 	# On package upgrade, don't run this.
 	show "Setting up resolvconf"
-	umask 022
 	if [ ! -d "$RUN_DIR" ] ; then
 		if [ ! -L "$RUN_DIR" ]; then
 			fail
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/resolvconf.init?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list