summaryrefslogtreecommitdiffstats
path: root/mdmon.c
diff options
context:
space:
mode:
authorDoug Ledford <dledford@redhat.com>2010-03-17 04:00:11 +0100
committerNeilBrown <neilb@suse.de>2010-03-23 23:07:03 +0100
commit435b90e7d41a17f35a984112cace471c975906f4 (patch)
treecbf5adee058c05beaa81d36c3fee016bed48523e /mdmon.c
parent(no commit message) (diff)
downloadmdadm-435b90e7d41a17f35a984112cace471c975906f4.tar.xz
mdadm-435b90e7d41a17f35a984112cace471c975906f4.zip
Create directory to contain mapfile (Assuming parent exists and
filesystem is writable). This particularly keeps udev happy if VAR_RUN is set to /dev/md. Signed-off-by: Doug Ledford <dledford@redhat.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdmon.c')
-rw-r--r--mdmon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdmon.c b/mdmon.c
index 961aa778..69c320e6 100644
--- a/mdmon.c
+++ b/mdmon.c
@@ -120,7 +120,7 @@ static int make_pidfile(char *devname)
int fd;
int n;
- if (mkdir(pid_dir, 0600) < 0 &&
+ if (mkdir(pid_dir, 0700) < 0 &&
errno != EEXIST)
return -errno;
sprintf(path, "%s/%s.pid", pid_dir, devname);