summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2008-02-18 00:23:28 +0000
committeryar <yar@FreeBSD.org>2008-02-18 00:23:28 +0000
commit2989f70f508ecf462c111f810ebbb008b899ec9e (patch)
tree6fcd75d64bc9c4949e174dd73f470fbc7d3381e0 /sbin
parentcc89c56074266679b35f25b6c747020fac27c22a (diff)
downloadFreeBSD-src-2989f70f508ecf462c111f810ebbb008b899ec9e.zip
FreeBSD-src-2989f70f508ecf462c111f810ebbb008b899ec9e.tar.gz
Back out rev. 1.74 because the kernel isn't ready yet
to see NFS specific string options.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/mount_nfs/mount_nfs.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sbin/mount_nfs/mount_nfs.c b/sbin/mount_nfs/mount_nfs.c
index edebc2e..48c0a1f 100644
--- a/sbin/mount_nfs/mount_nfs.c
+++ b/sbin/mount_nfs/mount_nfs.c
@@ -283,7 +283,7 @@ main(int argc, char *argv[])
struct iovec *iov;
int mntflags, altflags, num;
int iovlen;
- char *name, *p, *spec, *fstype, *val;
+ char *name, *p, *spec, *fstype;
char mntpath[MAXPATHLEN], errmsg[255];
mntflags = 0;
@@ -380,13 +380,6 @@ main(int argc, char *argv[])
else if (mountmode == V3)
altflags |= ALTF_NFSV3;
getmntopts(optarg, mopts, &mntflags, &altflags);
- p = strchr(optarg, '=');
- val = NULL;
- if (p != NULL) {
- *p = '\0';
- val = p + 1;
- }
- build_iovec(&iov, &iovlen, optarg, val, (size_t)-1);
set_flags(&altflags, &nfsargsp->flags, FALSE);
/*
* Handle altflags which don't map directly to
OpenPOWER on IntegriCloud