diff options
author | NeilBrown <neilb@suse.de> | 2008-11-02 21:19:37 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2008-11-02 21:19:37 +0100 |
commit | 35e3446bfeaa4f2a04517ac115710061b704d3a5 (patch) | |
tree | 4c60569e4c0f9f4a663425baa8d31d3db6787b92 /mapfile.c | |
parent | Incremental: change precedence order for autof setting. (diff) | |
download | mdadm-35e3446bfeaa4f2a04517ac115710061b704d3a5.tar.xz mdadm-35e3446bfeaa4f2a04517ac115710061b704d3a5.zip |
mapfile: fix bug in testing for /var/run/mdadm/
There was a bug. If /var/run/mdadm/ did not exist as a directory,
the map file should have been created in /var/run/mdadm.map, but
due to bug it would never get created.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mapfile.c')
-rw-r--r-- | mapfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -53,7 +53,7 @@ int map_write(struct map_ent *mel) f = fopen("/var/run/mdadm/map.new", "w"); if (!f) { f = fopen("/var/run/mdadm.map.new", "w"); - subdir = 1; + subdir = 0; } if (!f) return 0; |