mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Sigh - forgot the readonly flag to mount()
This commit is contained in:
parent
6444ef3b82
commit
722ff1fa6b
1 changed files with 2 additions and 3 deletions
|
|
@ -4,7 +4,7 @@
|
|||
* This is probably the last attempt in the `sysinstall' line, the next
|
||||
* generation being slated to essentially a complete rewrite.
|
||||
*
|
||||
* $Id: media_strategy.c,v 1.5 1995/05/21 15:40:51 jkh Exp $
|
||||
* $Id: media_strategy.c,v 1.8 1995/05/21 19:29:17 gpalmer Exp $
|
||||
*
|
||||
* Copyright (c) 1995
|
||||
* Jordan Hubbard. All rights reserved.
|
||||
|
|
@ -258,10 +258,9 @@ mediaInitCDROM(Device *dev)
|
|||
return FALSE;
|
||||
|
||||
args.fspec = dev->devname;
|
||||
args.export = NULL;
|
||||
args.flags = 0;
|
||||
|
||||
if (mount(MOUNT_CD9660, "/mnt", 0, (caddr_t) &args) == -1)
|
||||
if (mount(MOUNT_CD9660, "/mnt", MNT_RDONLY, (caddr_t) &args) == -1)
|
||||
{
|
||||
msgConfirm("Error mounting %s on /mnt: %s (%u)\n",
|
||||
dev, strerror(errno), errno);
|
||||
|
|
|
|||
Loading…
Reference in a new issue