diff options
author | msmith <msmith@FreeBSD.org> | 1999-11-04 17:48:11 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 1999-11-04 17:48:11 +0000 |
commit | 039680b91d5598913aec23f29f0be34d16022249 (patch) | |
tree | 2dc5f5ffd1585e651e79eaecc744a84f4d6fc8a2 /sys | |
parent | d3b5b379279b6bbee643b2559c1cdd558c8ecf75 (diff) | |
download | FreeBSD-src-039680b91d5598913aec23f29f0be34d16022249.zip FreeBSD-src-039680b91d5598913aec23f29f0be34d16022249.tar.gz |
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
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/vfs_conf.c | 2 | ||||
-rw-r--r-- | sys/kern/vfs_mount.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_conf.c b/sys/kern/vfs_conf.c index fa3ee4f..bce7489 100644 --- a/sys/kern/vfs_conf.c +++ b/sys/kern/vfs_conf.c @@ -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; diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index fa3ee4f..bce7489 100644 --- a/sys/kern/vfs_mount.c +++ b/sys/kern/vfs_mount.c @@ -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; |