summaryrefslogtreecommitdiffstats
path: root/sys/fs/ext2fs
diff options
context:
space:
mode:
authorjh <jh@FreeBSD.org>2012-04-11 15:48:50 +0000
committerjh <jh@FreeBSD.org>2012-04-11 15:48:50 +0000
commitcfeeeaffc798c6ab2912039bb5dc45a8191c628e (patch)
tree40389317714fbb8a0ba36890917ae9b2c7a95714 /sys/fs/ext2fs
parentb6c463eabcc7bf2733c840f14981f65008518526 (diff)
downloadFreeBSD-src-cfeeeaffc798c6ab2912039bb5dc45a8191c628e.zip
FreeBSD-src-cfeeeaffc798c6ab2912039bb5dc45a8191c628e.tar.gz
Restore the blank line incorrectly removed in r234104.
Pointed out by: bde
Diffstat (limited to 'sys/fs/ext2fs')
-rw-r--r--sys/fs/ext2fs/ext2_vnops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/fs/ext2fs/ext2_vnops.c b/sys/fs/ext2fs/ext2_vnops.c
index 85552ba..d8270de 100644
--- a/sys/fs/ext2fs/ext2_vnops.c
+++ b/sys/fs/ext2fs/ext2_vnops.c
@@ -407,6 +407,7 @@ ext2_setattr(ap)
/* Disallow flags not supported by ext2fs. */
if(vap->va_flags & ~(SF_APPEND | SF_IMMUTABLE | UF_NODUMP))
return (EOPNOTSUPP);
+
if (vp->v_mount->mnt_flag & MNT_RDONLY)
return (EROFS);
/*
OpenPOWER on IntegriCloud