disk_clone() was a bit too eager to please: "md0s1ec" is not a valid
device. Noticed by: Chad David <davidc@acns.ab.ca>
This commit is contained in:
parent
d485784216
commit
5015bb7f85
@ -78,6 +78,8 @@ disk_clone(void *arg, char *name, int namelen, dev_t *dev)
|
||||
}
|
||||
if (name[i] == '\0')
|
||||
;
|
||||
else if (name[i + 1] != '\0')
|
||||
return;
|
||||
else if (name[i] < 'a' || name[i] > 'h')
|
||||
continue;
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user