summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-12-05 13:09:35 +0000
committerderaadt <deraadt@openbsd.org>1996-12-05 13:09:35 +0000
commitb354be8117f8d79b7109f2604beeebe89144ee44 (patch)
treee572c53f5f164b5a68e86b9f55823cabd5ed27bd /sys
parentproto iso_disklabelspoof() inside an #ifdef (no nicer place) (diff)
downloadwireguard-openbsd-b354be8117f8d79b7109f2604beeebe89144ee44.tar.xz
wireguard-openbsd-b354be8117f8d79b7109f2604beeebe89144ee44.zip
call iso_disklabelspoof() as needed...
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/i386/i386/disksubr.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/disksubr.c b/sys/arch/i386/i386/disksubr.c
index 45b7634133e..f111d36234c 100644
--- a/sys/arch/i386/i386/disksubr.c
+++ b/sys/arch/i386/i386/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.11 1996/10/23 15:24:07 deraadt Exp $ */
+/* $OpenBSD: disksubr.c,v 1.12 1996/12/05 13:09:35 deraadt Exp $ */
/* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */
/*
@@ -99,6 +99,11 @@ readdisklabel(dev, strat, lp, osdep)
lp->d_partitions[i].p_size = 0x1fffffff;
lp->d_partitions[i].p_offset = 0;
+#if defined(CD9660)
+ if (iso_disklabelspoof(dev, strat, lp) == 0)
+ return (msg);
+#endif
+
/* get a buffer and initialize it */
bp = geteblk((int)lp->d_secsize);
bp->b_dev = dev;