Index: src/sbin/mount/mount.c =================================================================== --- src/sbin/mount/mount.c (revision 188) +++ src/sbin/mount/mount.c (working copy) @@ -461,9 +461,6 @@ free(optbuf); return (1); case 0: /* Child. */ - if (strcmp(vfstype, "ufs") == 0) - exit(mount_ufs(argc, (char * const *) argv)); - /* Go find an executable. */ execvP(execname, _PATH_SYSPATH, (char * const *)argv); if (errno == ENOENT) { Index: src/sbin/mount_ufs/mount_ufs.c =================================================================== --- src/sbin/mount_ufs/mount_ufs.c (revision 188) +++ src/sbin/mount_ufs/mount_ufs.c (working copy) @@ -72,12 +72,12 @@ struct iovec *iov; int iovlen; struct export_args export; - int ch, i, mntflags, opts, ufs_flags; + int ch, i, mntflags, opts; char *dev, *dir, mntpath[MAXPATHLEN]; char *cs_disk, *cs_local; int verbose; - i = mntflags = opts = ufs_flags = verbose = 0; + i = mntflags = opts = verbose = 0; cs_disk = cs_local = NULL; while ((ch = getopt(argc, argv, "o:v")) != -1) switch (ch) { @@ -119,7 +119,6 @@ build_iovec(&iov, &iovlen, "fstype", "ufs", -1); build_iovec(&iov, &iovlen, "fspath", mntpath, -1); build_iovec(&iov, &iovlen, "from", dev, -1); - build_iovec(&iov, &iovlen, "flags", &ufs_flags, sizeof ufs_flags); build_iovec(&iov, &iovlen, "export", &export, sizeof export); if (nmount(iov, iovlen, mntflags) < 0) err(1, "%s", dev);