Allow vfs names to include the digits 0-9 as well as the letters a-z.

This should let 'cd9660' filesystems be allowed.

Submitted by:	ghelmer
This commit is contained in:
Mike Smith 1999-11-04 17:48:11 +00:00
parent 065f7f132a
commit 586aaa0f6b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52881
2 changed files with 2 additions and 2 deletions

View File

@ -179,7 +179,7 @@ vfs_mountroot_try(char *mountfrom)
vfsname = malloc(MFSNAMELEN, M_MOUNT, M_WAITOK);
path = malloc(MNAMELEN, M_MOUNT, M_WAITOK);
vfsname[0] = path[0] = 0;
sprintf(patt, "%%%d[a-z]:%%%ds", MFSNAMELEN, MNAMELEN);
sprintf(patt, "%%%d[a-z0-9]:%%%ds", MFSNAMELEN, MNAMELEN);
if (sscanf(mountfrom, patt, vfsname, path) < 1)
goto done;

View File

@ -179,7 +179,7 @@ vfs_mountroot_try(char *mountfrom)
vfsname = malloc(MFSNAMELEN, M_MOUNT, M_WAITOK);
path = malloc(MNAMELEN, M_MOUNT, M_WAITOK);
vfsname[0] = path[0] = 0;
sprintf(patt, "%%%d[a-z]:%%%ds", MFSNAMELEN, MNAMELEN);
sprintf(patt, "%%%d[a-z0-9]:%%%ds", MFSNAMELEN, MNAMELEN);
if (sscanf(mountfrom, patt, vfsname, path) < 1)
goto done;