diff options
author | Doug Ledford <dledford@redhat.com> | 2010-03-17 04:00:11 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-03-23 23:07:03 +0100 |
commit | 435b90e7d41a17f35a984112cace471c975906f4 (patch) | |
tree | cbf5adee058c05beaa81d36c3fee016bed48523e /mdmon.c | |
parent | (no commit message) (diff) | |
download | mdadm-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |