Message ID | 20090406165044.22474.qmail@sourceware.org (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
--- multipath-tools/multipathd/main.c 2009/04/03 15:09:03 1.69.2.17 +++ multipath-tools/multipathd/main.c 2009/04/06 16:50:43 1.69.2.18 @@ -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 { --- multipath-tools/multipathd/multipathd.init.redhat 2008/08/28 19:22:33 1.2.4.3 +++ multipath-tools/multipathd/multipathd.init.redhat 2009/04/06 16:50:44 1.2.4.4 @@ -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 } #