]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
mdmon: don't mkdir /var/run
authorNeilBrown <neilb@suse.de>
Fri, 29 Jan 2010 01:20:11 +0000 (12:20 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 4 Feb 2010 05:37:20 +0000 (16:37 +1100)
Creating /var/run in mdmon is really not justifiable.

If /var/run doesn't exist, then it is either deliberate and it should
be left that way to make sure the mapfile gets created in /dev, or
it is a configuration error and not our problem to fix.

Signed-off-by: NeilBrown <neilb@suse.de>
managemon.c

index e3350778b9fcb0381b052588c8afac62221492fe..a4e9a8f02709a51282a72b1b95e597e508a8499a 100644 (file)
@@ -706,8 +706,6 @@ void do_manager(struct supertype *container)
                                /* If this fails, we hope it already exists
                                 * pid file lives in /var/run/mdadm/mdXX.pid
                                 */
-                               mkdir("/var", 0600);
-                               mkdir("/var/run", 0600);
                                mkdir("/var/run/mdadm", 0600);
                                close(container->sock);
                                container->sock = make_control_sock(container->devname);