summaryrefslogtreecommitdiffstats
path: root/sbin/mount_nfs/mount_nfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/mount_nfs/mount_nfs.c')
-rw-r--r--sbin/mount_nfs/mount_nfs.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/sbin/mount_nfs/mount_nfs.c b/sbin/mount_nfs/mount_nfs.c
index f0629c2..825febe 100644
--- a/sbin/mount_nfs/mount_nfs.c
+++ b/sbin/mount_nfs/mount_nfs.c
@@ -247,8 +247,6 @@ main(argc, argv)
int mntflags, altflags, nfssvc_flag, num;
char *name, *p, *spec;
char mntpath[MAXPATHLEN];
- struct vfsconf vfc;
- int error = 0;
mntflags = 0;
altflags = 0;
@@ -436,17 +434,7 @@ main(argc, argv)
/* resolve the mountpoint with realpath(3) */
(void)checkpath(name, mntpath);
- error = getvfsbyname("nfs", &vfc);
- if (error && vfsisloadable("nfs")) {
- if(vfsload("nfs"))
- err(EX_OSERR, "vfsload(nfs)");
- endvfsent(); /* clear cache */
- error = getvfsbyname("nfs", &vfc);
- }
- if (error)
- errx(EX_OSERR, "nfs filesystem is not available");
-
- if (mount(vfc.vfc_name, mntpath, mntflags, nfsargsp))
+ if (mount("nfs", mntpath, mntflags, nfsargsp))
err(1, "%s", mntpath);
exit(0);
OpenPOWER on IntegriCloud