If partoffp is non-NULL then readdoslabel() is just looking for the
authorkrw <krw@openbsd.org>
Mon, 25 Aug 2008 11:27:00 +0000 (11:27 +0000)
committerkrw <krw@openbsd.org>
Mon, 25 Aug 2008 11:27:00 +0000 (11:27 +0000)
commita41642971dfc8a4865f478960586a4a706406bd0
tree6e947ddedcf0fbfda843c188ee2e50ab3a3d3a93
parentbab31ab25ee3d7661972ef5405a4ae5feff172a0
If partoffp is non-NULL then readdoslabel() is just looking for the
correct address to write the passed label. Don't spoof partitions
while looking for the address, as this could result in an invalid
label being written out.

"That looks right" deraadt@ "Looks good to me" miod@
sys/kern/subr_disk.c