summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2015-01-16 20:17:05 +0000
committermiod <miod@openbsd.org>2015-01-16 20:17:05 +0000
commitaf4e92ef158e8b3985680801d7c817543d8f43c7 (patch)
tree58600530c47b73539d460eb868b3d47a5719e524 /lib
parentUse ">", not ">=" when comparing length to HOST_NAME_MAX since (diff)
downloadwireguard-openbsd-af4e92ef158e8b3985680801d7c817543d8f43c7.tar.xz
wireguard-openbsd-af4e92ef158e8b3985680801d7c817543d8f43c7.zip
disklabel_sun_to_bsd() will nicely set the disk size if it is zero, but it is
usually invoked after initdisklabel() which proactively changes a zero disk size to MAXDISKSIZE, causing this test to fail. Allow for MAXDISKSIZE too in that test. This makes spoofed disklabels of SMD disks have a proper `c' slice size. luna88k disklabel_om_to_bsd() is modified accordingly, to keep diffability, even though luna88k can't - to the best of my knowledge - sport SMD disk controllers. ok deraadt@ krw@
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions