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:
parent
065f7f132a
commit
586aaa0f6b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52881
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user