summaryrefslogtreecommitdiff
path: root/sys/isofs/cd9660/cd9660_vfsops.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2009-05-21 23:45:49 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2009-05-21 23:45:49 +0000
commitae8a031e28803ad11c91125bd1523348d0f9aba7 (patch)
treebdb340ca3ea84c5ced44c0a90436c136a706dcf3 /sys/isofs/cd9660/cd9660_vfsops.c
parenta8bf30cd22bf1b839f7e9bffcd664791d8b3b2ae (diff)
The only value that d_npartitions should have is MAXPARTITIONS.
Diffstat (limited to 'sys/isofs/cd9660/cd9660_vfsops.c')
-rw-r--r--sys/isofs/cd9660/cd9660_vfsops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/isofs/cd9660/cd9660_vfsops.c b/sys/isofs/cd9660/cd9660_vfsops.c
index 8e9b64f36e8..fbf67947c25 100644
--- a/sys/isofs/cd9660/cd9660_vfsops.c
+++ b/sys/isofs/cd9660/cd9660_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cd9660_vfsops.c,v 1.48 2008/07/23 16:24:43 beck Exp $ */
+/* $OpenBSD: cd9660_vfsops.c,v 1.49 2009/05/21 23:45:48 krw Exp $ */
/* $NetBSD: cd9660_vfsops.c,v 1.26 1997/06/13 15:38:58 pk Exp $ */
/*-
@@ -522,7 +522,7 @@ iso_disklabelspoof(dev, strat, lp)
DL_SETPOFFSET(&lp->d_partitions[RAW_PART], 0);
DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp));
lp->d_partitions[RAW_PART].p_fstype = FS_ISO9660;
- lp->d_npartitions = RAW_PART + 1;
+ lp->d_npartitions = MAXPARTITIONS;
lp->d_bbsize = 8192; /* fake */
lp->d_sbsize = 64*1024; /* fake */
lp->d_version = 1;