]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - mdadm.c
fix: Allowed to assemble 2 volumes with the same names from config file.
[thirdparty/mdadm.git] / mdadm.c
diff --git a/mdadm.c b/mdadm.c
index 8e0ce18656d496a80a049475efbbf900dacdbf58..c6a887a87b1065ed9168a85e3e1dfdd25b6c50d3 100644 (file)
--- a/mdadm.c
+++ b/mdadm.c
@@ -1292,6 +1292,13 @@ int main(int argc, char *argv[])
                        struct map_ent *map = NULL;
                        int cnt = 0;
                        int failures, successes;
+
+                       if (conf_verify_devnames(array_list)) {
+                               fprintf(stderr, Name
+                                       ": Duplicate MD device names in "
+                                       "conf file were found.\n");
+                               exit(1);
+                       }
                        if (devlist == NULL) {
                                fprintf(stderr, Name ": No devices listed in conf file were found.\n");
                                exit(1);