diff options
author | 2015-01-16 20:17:05 +0000 | |
---|---|---|
committer | 2015-01-16 20:17:05 +0000 | |
commit | af4e92ef158e8b3985680801d7c817543d8f43c7 (patch) | |
tree | 58600530c47b73539d460eb868b3d47a5719e524 /lib | |
parent | Use ">", not ">=" when comparing length to HOST_NAME_MAX since (diff) | |
download | wireguard-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