summaryrefslogtreecommitdiffstats
path: root/mapfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'mapfile.c')
-rw-r--r--mapfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mapfile.c b/mapfile.c
index 3a26c6d..112d385 100644
--- a/mapfile.c
+++ b/mapfile.c
@@ -331,7 +331,7 @@ void RebuildMap(void)
if (ok != 0)
continue;
st->ss->getinfo_super(st, &info);
- if (md->devnum > 0)
+ if (md->devnum >= 0)
path = map_dev(MD_MAJOR, md->devnum, 0);
else
path = map_dev(mdp, (-1-md->devnum)<< 6, 0);