summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-05-28 21:30:39 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-05-28 21:30:39 +0000
commit596f37e05aebe8dc1008fd68b0866d1b6d1ba51f (patch)
tree347e8ee71ef71953e41300d4cb055f8a7219b18c /sys
parent386de8bfd6f1b68991fc331555cdad336197e32a (diff)
inval other parts, in case
Diffstat (limited to 'sys')
-rw-r--r--sys/isofs/cd9660/cd9660_vfsops.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/isofs/cd9660/cd9660_vfsops.c b/sys/isofs/cd9660/cd9660_vfsops.c
index a70e57f2dd0..d6f0673b1b9 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.6 1997/01/21 21:34:18 rahnds Exp $ */
+/* $OpenBSD: cd9660_vfsops.c,v 1.7 1997/05/28 21:30:38 deraadt Exp $ */
/* $NetBSD: cd9660_vfsops.c,v 1.20 1996/02/09 21:32:08 christos Exp $ */
/*-
@@ -393,6 +393,7 @@ iso_disklabelspoof(dev, strat, lp)
int logical_block_size;
int error = EINVAL;
int iso_blknum;
+ int i;
bp = geteblk(ISO_DEFAULT_BLOCK_SIZE);
bp->b_dev = dev;
@@ -436,6 +437,8 @@ iso_disklabelspoof(dev, strat, lp)
*/
strncpy(lp->d_typename, pri->volume_id, 16);
strncpy(lp->d_packname, pri->volume_id+16, 16);
+ for (i = 0; i < MAXPARTITIONS; i++)
+ lp->d_partitions[i].p_size = 0;
lp->d_partitions[0].p_offset = 0;
lp->d_partitions[0].p_size = lp->d_secperunit;
lp->d_partitions[0].p_fstype = FS_ISO9660;