From aca263db26cf6a6100ca0bfe77a060374c37705b Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 19 Apr 1997 20:10:14 +0000 Subject: force readonly, heh --- sbin/mount_cd9660/mount_cd9660.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sbin/mount_cd9660') diff --git a/sbin/mount_cd9660/mount_cd9660.c b/sbin/mount_cd9660/mount_cd9660.c index a53dc4d21dd..8d44a555269 100644 --- a/sbin/mount_cd9660/mount_cd9660.c +++ b/sbin/mount_cd9660/mount_cd9660.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mount_cd9660.c,v 1.5 1997/04/19 20:07:24 flipk Exp $ */ +/* $OpenBSD: mount_cd9660.c,v 1.6 1997/04/19 20:10:13 deraadt Exp $ */ /* $NetBSD: mount_cd9660.c,v 1.3 1996/04/13 01:31:08 jtc Exp $ */ /* @@ -49,7 +49,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)mount_cd9660.c 8.4 (Berkeley) 3/27/94"; #else -static char rcsid[] = "$OpenBSD: mount_cd9660.c,v 1.5 1997/04/19 20:07:24 flipk Exp $"; +static char rcsid[] = "$OpenBSD: mount_cd9660.c,v 1.6 1997/04/19 20:10:13 deraadt Exp $"; #endif #endif /* not lint */ @@ -114,6 +114,9 @@ main(argc, argv) args.fspec = dev; args.export.ex_root = DEFAULT_ROOTUID; +#if 1 + mntflags |= MNT_RDONLY; +#endif if (mntflags & MNT_RDONLY) args.export.ex_flags = MNT_EXRDONLY; else -- cgit v1.2.3