Ignore leading 'r' in base of root device name.

This commit is contained in:
phk 1999-11-08 11:44:51 +00:00
parent 5b90185d7f
commit 57a1b53168
2 changed files with 4 additions and 0 deletions

View File

@ -314,6 +314,8 @@ setrootbyname(char *name)
if (cp != NULL) {
name = cp + 1;
}
if (*name == 'r')
name++;
cp = name;
while (cp != '\0' && (*cp < '0' || *cp > '9'))
cp++;

View File

@ -314,6 +314,8 @@ setrootbyname(char *name)
if (cp != NULL) {
name = cp + 1;
}
if (*name == 'r')
name++;
cp = name;
while (cp != '\0' && (*cp < '0' || *cp > '9'))
cp++;