diff options
Diffstat (limited to 'sbin/mount/mount.c')
-rw-r--r-- | sbin/mount/mount.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index d16b3d6..ee05e9d 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 ** |