diff options
author | des <des@FreeBSD.org> | 2005-05-17 18:23:03 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2005-05-17 18:23:03 +0000 |
commit | 0bbbcadeb16184522e4af7fcacc65ada44e79686 (patch) | |
tree | fd66de6f5f7bf22e0948cb855cbf21ecbc4dcf7e /sys/nfsclient | |
parent | f9c8ec5a2d9990e87346baa3a3b4f8e445ddf8b8 (diff) | |
download | FreeBSD-src-0bbbcadeb16184522e4af7fcacc65ada44e79686.zip FreeBSD-src-0bbbcadeb16184522e4af7fcacc65ada44e79686.tar.gz |
Ugh. Previous commit got the logic exactly backward.
Submitted by: bland
Pointy hat to: des
Diffstat (limited to 'sys/nfsclient')
-rw-r--r-- | sys/nfsclient/nfs_vfsops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c index d2a9cf0..e7a3a1a 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; /* |