X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=blobdiff_plain;f=util.c;h=8febfd2c0ab6e0ff5a3aa23b7ac4d0c912b22221;hp=c349df8d23c4a0262fd5c3733dc9951f1861e602;hb=5a6d1148cccc50532ae6a96e04226522b7996850;hpb=a46f4061d3b35e101651a764582186e5f89b2bea diff --git a/util.c b/util.c index c349df8d..8febfd2c 100644 --- a/util.c +++ b/util.c @@ -284,7 +284,7 @@ int is_standard(char *dev, int *nump) else if (strncmp(d, "/md", 3)==0) d += 3, type=-1; /* /dev/mdN */ else if (d-dev > 3 && strncmp(d-2, "md/", 3)==0) - type = -1; /* /dev/md/N */ + d += 1, type=-1; /* /dev/md/N */ else return 0; if (!*d)