aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/mount/mount.c')
-rw-r--r--sbin/mount/mount.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c
index d16b3d6b5543..ee05e9db3367 100644
--- a/sbin/mount/mount.c
+++ b/sbin/mount/mount.c
@@ -412,12 +412,13 @@ badvfstype(vfstype, vfslist)
int vfstype;
const char **vfslist;
{
-static const char *vfsnames[] = INITMOUNTNAMES;
+ struct vfsconf *vfc;
+ vfc = getvfsbytype(vfstype);
- if ((vfstype < 0) || (vfstype > MOUNT_MAXTYPE))
+ if ( ! vfc )
return (0);
- return (badvfsname(vfsnames[vfstype], vfslist));
+ return (badvfsname(vfc->vfc_name, vfslist));
}
const char **