diff options
author | dg <dg@FreeBSD.org> | 1994-09-07 15:07:43 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-09-07 15:07:43 +0000 |
commit | cd9e971becad1bf5f2c758ad0ae7b4c76e8cb5d2 (patch) | |
tree | 00bfd6763e912c1169b68a14622f64163c015482 /sbin/mount_cd9660 | |
parent | a120783f36ff3b3e30de315b385a6e7df0d619ac (diff) | |
download | FreeBSD-src-cd9e971becad1bf5f2c758ad0ae7b4c76e8cb5d2.zip FreeBSD-src-cd9e971becad1bf5f2c758ad0ae7b4c76e8cb5d2.tar.gz |
Get rid of the need for the readonly mandatory option - set readonly
flags regardless of whether the user specified it.
Diffstat (limited to 'sbin/mount_cd9660')
-rw-r--r-- | sbin/mount_cd9660/mount_cd9660.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sbin/mount_cd9660/mount_cd9660.c b/sbin/mount_cd9660/mount_cd9660.c index 7f307ea..c22901e 100644 --- a/sbin/mount_cd9660/mount_cd9660.c +++ b/sbin/mount_cd9660/mount_cd9660.c @@ -109,10 +109,12 @@ main(argc, argv) args.fspec = dev; args.export.ex_root = DEFAULT_ROOTUID; - if (mntflags & MNT_RDONLY) - args.export.ex_flags = MNT_EXRDONLY; - else - args.export.ex_flags = 0; + /* + * ISO 9660 filesystems are not writeable. + */ + mntflags |= MNT_RDONLY; + args.export.ex_flags = MNT_EXRDONLY; + args.flags = opts; if (mount(MOUNT_CD9660, dir, mntflags, &args) < 0) |