aboutsummaryrefslogtreecommitdiff
path: root/sys/nfsclient
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2005-05-17 18:23:03 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2005-05-17 18:23:03 +0000
commit3f54cc0505733873300dc35860f4d4dc52da0fe2 (patch)
treefd66de6f5f7bf22e0948cb855cbf21ecbc4dcf7e /sys/nfsclient
parentd854ee074277f8ecb252e1f874f0dded9d8faf84 (diff)
downloadsrc-3f54cc0505733873300dc35860f4d4dc52da0fe2.tar.gz
src-3f54cc0505733873300dc35860f4d4dc52da0fe2.zip
Ugh. Previous commit got the logic exactly backward.
Submitted by: bland Pointy hat to: des
Notes
Notes: svn path=/head/; revision=146333
Diffstat (limited to 'sys/nfsclient')
-rw-r--r--sys/nfsclient/nfs_vfsops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c
index d2a9cf062183..e7a3a1ac3a27 100644
--- a/sys/nfsclient/nfs_vfsops.c
+++ b/sys/nfsclient/nfs_vfsops.c
@@ -519,9 +519,9 @@ nfs_decode_args(struct mount *mp, struct nfsmount *nmp, struct nfs_args *argp)
* flag is already clear, or this is a root mount and it was set
* intentionally at some previous point.
*/
- if (vfs_getopt(mp->mnt_optnew, "ro", NULL, NULL) != 0)
+ if (vfs_getopt(mp->mnt_optnew, "ro", NULL, NULL) == 0)
mp->mnt_flag |= MNT_RDONLY;
- else if (!(mp->mnt_flag & MNT_UPDATE))
+ else if (mp->mnt_flag & MNT_UPDATE)
mp->mnt_flag &= ~MNT_RDONLY;
/*