X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=blobdiff_plain;f=util.c;h=60fe6c0a0c2f9f1d97727da18a9de7f449f41793;hp=3bf4cbe31d832eb124f5bf37315ec67f70ce912c;hb=3c558363a1991430e8a9e10c93ee9ee3f8996940;hpb=6c386dd368ca1d24554fbf700239e8aa222591fb diff --git a/util.c b/util.c index 3bf4cbe3..60fe6c0a 100644 --- a/util.c +++ b/util.c @@ -821,7 +821,7 @@ struct supertype *super_by_fd(int fd) sprintf(version, "%d.%d", vers, minor); verstr = version; } - if (minor == -2 && verstr[0] == '/') { + if (minor == -2 && is_subarray(verstr)) { char *dev = verstr+1; subarray = strchr(dev, '/'); int devnum;