summaryrefslogtreecommitdiffstats
path: root/sbin/mount
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2005-12-03 01:57:58 +0000
committerrodrigc <rodrigc@FreeBSD.org>2005-12-03 01:57:58 +0000
commitafd142410c5732012bad5df32b418b7129c6f7b0 (patch)
tree78b7f5c65d5133b67925f80e7cf9955ca74bb26b /sbin/mount
parentf5d614cb59a5721dbad4273269e95073975280f9 (diff)
downloadFreeBSD-src-afd142410c5732012bad5df32b418b7129c6f7b0.zip
FreeBSD-src-afd142410c5732012bad5df32b418b7129c6f7b0.tar.gz
Simplify parsing of mount options by passing
"rw" option down to kernel, since vfs_donmount() can now parse it.
Diffstat (limited to 'sbin/mount')
-rw-r--r--sbin/mount/mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c
index 770be86..17e08eb 100644
--- a/sbin/mount/mount.c
+++ b/sbin/mount/mount.c
@@ -644,7 +644,7 @@ mangle(options, argcp, argv)
*p = '\0';
argv[argc++] = p+1;
}
- } else if (strcmp(p, "rw") != 0) {
+ } else {
argv[argc++] = strdup("-o");
argv[argc++] = p;
}
OpenPOWER on IntegriCloud