From 0bbbcadeb16184522e4af7fcacc65ada44e79686 Mon Sep 17 00:00:00 2001 From: des Date: Tue, 17 May 2005 18:23:03 +0000 Subject: [PATCH] Ugh. Previous commit got the logic exactly backward. Submitted by: bland Pointy hat to: des --- sys/nfsclient/nfs_vfsops.c | 4 ++-- 1 file 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; /*