From: NeilBrown Date: Fri, 29 Jan 2010 01:20:11 +0000 (+1100) Subject: mdmon: don't mkdir /var/run X-Git-Tag: mdadm-3.1.2~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=688a1e5b07dc46ae10aeafbda61c1700ad09551b;p=thirdparty%2Fmdadm.git 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 --- diff --git a/managemon.c b/managemon.c index e3350778..a4e9a8f0 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);