From ae8a031e28803ad11c91125bd1523348d0f9aba7 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Thu, 21 May 2009 23:45:49 +0000 Subject: The only value that d_npartitions should have is MAXPARTITIONS. --- sys/isofs/cd9660/cd9660_vfsops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/isofs/cd9660/cd9660_vfsops.c') 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; -- cgit v1.2.3