-/* $OpenBSD: mount_ext2fs.c,v 1.2 1997/01/15 23:41:18 millert Exp $ */
+/* $OpenBSD: mount_ext2fs.c,v 1.3 1997/04/24 08:28:54 downsj Exp $ */
/* $NetBSD: mount_ffs.c,v 1.3 1996/04/13 01:31:19 jtc Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)mount_ufs.c 8.2 (Berkeley) 3/27/94";
#else
-static char rcsid[] = "$OpenBSD: mount_ext2fs.c,v 1.2 1997/01/15 23:41:18 millert Exp $";
+static char rcsid[] = "$OpenBSD: mount_ext2fs.c,v 1.3 1997/04/24 08:28:54 downsj Exp $";
#endif
#endif /* not lint */
args.fspec = argv[0]; /* The name of the device file. */
fs_name = argv[1]; /* The mount point. */
+#if 1
+ /*
+ * This version of ext2fs is buggy. Enforce read only mounts.
+ * If the user wants a writeable mount, they remove this code.
+ */
+ mntflags |= MNT_RDONLY;
+#endif
+
#define DEFAULT_ROOTUID -2
args.export.ex_root = DEFAULT_ROOTUID;
if (mntflags & MNT_RDONLY)