summaryrefslogtreecommitdiffstats
path: root/managemon.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-01-29 12:20:11 +1100
committerNeilBrown <neilb@suse.de>2010-02-04 16:37:20 +1100
commit688a1e5b07dc46ae10aeafbda61c1700ad09551b (patch)
tree567f91335d619e733f477c4f7b766370d8396872 /managemon.c
parente98ef2250905e8525bbdc0aab83e07a3de5a70ed (diff)
downloadmdadm-688a1e5b07dc46ae10aeafbda61c1700ad09551b.tar.gz
mdadm-688a1e5b07dc46ae10aeafbda61c1700ad09551b.tar.xz
mdadm-688a1e5b07dc46ae10aeafbda61c1700ad09551b.zip
mdmon: don't mkdir /var/run
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>
Diffstat (limited to 'managemon.c')
-rw-r--r--managemon.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/managemon.c b/managemon.c
index e335077..a4e9a8f 100644
--- a/managemon.c
+++ b/managemon.c
@@ -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);