mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 02:22:43 +00:00
Get rid of the need for the readonly mandatory option - set readonly
flags regardless of whether the user specified it.
This commit is contained in:
parent
ff753cd302
commit
6052587146
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2542
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user