when using getargs, don't set read-only otherwise it fails with EINVAL.
This commit is contained in:
parent
5bd66079eb
commit
84f0d7015a
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mount_cd9660.c,v 1.29 2009/01/03 20:11:04 christos Exp $ */
|
||||
/* $NetBSD: mount_cd9660.c,v 1.30 2009/01/03 23:09:41 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993, 1994
|
||||
|
@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1992, 1993, 1994\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)mount_cd9660.c 8.7 (Berkeley) 5/1/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: mount_cd9660.c,v 1.29 2009/01/03 20:11:04 christos Exp $");
|
||||
__RCSID("$NetBSD: mount_cd9660.c,v 1.30 2009/01/03 23:09:41 christos Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -138,6 +138,7 @@ mount_cd9660_parseargs(int argc, char **argv,
|
|||
default:
|
||||
usage();
|
||||
}
|
||||
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
|
||||
|
@ -154,7 +155,8 @@ mount_cd9660_parseargs(int argc, char **argv,
|
|||
/*
|
||||
* ISO 9660 filesystems are not writable.
|
||||
*/
|
||||
*mntflags |= MNT_RDONLY;
|
||||
if ((*mntflags & MNT_GETARGS) == 0)
|
||||
*mntflags |= MNT_RDONLY;
|
||||
args->fspec = dev;
|
||||
args->flags = opts;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue