diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-04 23:55:31 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-04 23:55:31 +0000 |
commit | 7fd15f4de151e533bfb928d81ee52292e20e3a55 (patch) | |
tree | ea3a612c3b092d449d25efd7eb2d8cf6fd233614 /sys/isofs/cd9660 | |
parent | f6f9129670cc981c85cd0f530692a3ae4ba4fec5 (diff) |
undo more pre-spoofing data structure damage by readdisklabel
Diffstat (limited to 'sys/isofs/cd9660')
-rw-r--r-- | sys/isofs/cd9660/cd9660_vfsops.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/isofs/cd9660/cd9660_vfsops.c b/sys/isofs/cd9660/cd9660_vfsops.c index d6f0673b1b9..8fb532f19c3 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.7 1997/05/28 21:30:38 deraadt Exp $ */ +/* $OpenBSD: cd9660_vfsops.c,v 1.8 1997/06/04 23:55:30 deraadt Exp $ */ /* $NetBSD: cd9660_vfsops.c,v 1.20 1996/02/09 21:32:08 christos Exp $ */ /*- @@ -437,8 +437,10 @@ 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++) + for (i = 0; i < MAXPARTITIONS; i++) { lp->d_partitions[i].p_size = 0; + lp->d_partitions[i].p_offset = 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; |