summaryrefslogtreecommitdiff
path: root/sbin/mount_ext2fs/mount_ext2fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/mount_ext2fs/mount_ext2fs.c')
-rw-r--r--sbin/mount_ext2fs/mount_ext2fs.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sbin/mount_ext2fs/mount_ext2fs.c b/sbin/mount_ext2fs/mount_ext2fs.c
index 8797f2df9ac..a1cfd0d3f49 100644
--- a/sbin/mount_ext2fs/mount_ext2fs.c
+++ b/sbin/mount_ext2fs/mount_ext2fs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mount_ext2fs.c,v 1.14 2009/10/27 23:59:33 deraadt Exp $ */
+/* $OpenBSD: mount_ext2fs.c,v 1.15 2012/07/08 14:30:58 krw Exp $ */
/* $NetBSD: mount_ffs.c,v 1.3 1996/04/13 01:31:19 jtc Exp $ */
/*-
@@ -97,6 +97,10 @@ main(int argc, char *argv[])
case EOPNOTSUPP:
errcause = "filesystem not supported by kernel";
break;
+ case EROFS:
+ errcause =
+ "filesystem must be mounted read-only; you may need to run fsck";
+ break;
default:
errcause = strerror(errno);
break;