From 5a6d1148cccc50532ae6a96e04226522b7996850 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Tue, 14 Jun 2005 06:33:24 +0000 Subject: Fix parsing of /dev/md/N in is_standard Signed-off-by: Neil Brown --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util.c') diff --git a/util.c b/util.c index c349df8..8febfd2 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) -- cgit