Date: Wed, 6 Jul 2005 15:56:21 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 79661 for review Message-ID: <200507061556.j66FuLcF019236@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=79661 Change 79661 by rwatson@rwatson_zoo on 2005/07/06 15:55:46 Likely fix for nmount(1) use in mounting UFS. Submitted by: Suleiman Souhlal <souhlal@FreeBSD.org> Affected files ... .. //depot/projects/trustedbsd/sebsd/sbin/mount_ufs/mount_ufs.c#2 edit Differences ... ==== //depot/projects/trustedbsd/sebsd/sbin/mount_ufs/mount_ufs.c#2 (text+ko) ==== @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507061556.j66FuLcF019236>