]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Assemble.c
Assemble: ignore unknown devices not listed on command line.
[thirdparty/mdadm.git] / Assemble.c
index 36fd4b7afb25a5fc344d54bbcaf4f8d7069203f1..ea54fc099d8f9cc060efb9dd1bdb3a298f97deba 100644 (file)
@@ -379,7 +379,7 @@ int Assemble(struct supertype *st, char *mddev,
                }
                if (dfd >= 0) close(dfd);
                if (tmpdev->used == 2) {
-                       if (auto_assem)
+                       if (auto_assem || !inargv)
                                /* Ignore unrecognised devices during auto-assembly */
                                goto loop;
                        if (ident->uuid_set || ident->name[0] ||