Sigh - forgot the readonly flag to mount()

This commit is contained in:
Gary Palmer 1995-05-21 19:51:50 +00:00
parent 6444ef3b82
commit 722ff1fa6b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=8689

View File

@ -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);