Skip to contentSkip to conversation

multipath-tools/multipathd main.c multipathd.i ...

PATCH [email protected] 1 participant 1 message Apr 6, 2009 Device mapper

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/dm
Module name: multipath-tools
Branch: RHEL5_FC6
Changes by: [email protected] 2009-04-06 16:50:44

Modified files:
multipathd : main.c multipathd.init.redhat

Log message:
Fix for bz #493402. Change umask for multipathd. Already fixed upstream.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/multipathd/main.c.diff?cvsroot=dm&only_with_tag=RHEL5_FC6&r1=1.69.2.17&r2=1.69.2.18
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/multipathd/multipathd.init.redhat.diff?cvsroot=dm&only_with_tag=RHEL5_FC6&r1=1.2.4.3&r2=1.2.4.4

multipathd/main.c +1 -1
@@ -775,6 +775,7 @@
 	add_handler(RESTOREQ+MAPS, cli_restore_all_queueing);
 	add_handler(RESIZE+MAP, cli_resize);
 
+	umask(077);
 	uxsock_listen(&uxsock_trigger, ap);
 
 	return NULL;
@@ -1497,7 +1498,6 @@
 	close(in_fd);
 	close(out_fd);
 	chdir("/");
-	umask(0);
 }
 
 enum child_flag_bits {
multipathd/multipathd.init.redhat +2 -0
@@ -29,6 +29,7 @@
 
 teardown_slaves()
 {
+pwd=`pwd`
 cd $1; 
 if [ -d "slaves" ]; then
 for slave in slaves/*;
@@ -54,6 +55,7 @@
 			exit 1
 		fi
 fi
+cd $pwd
 }
 
 #