summaryrefslogtreecommitdiffstats
path: root/usr.sbin/relayd/config.c
diff options
context:
space:
mode:
authorpirofti <pirofti@openbsd.org>2016-09-02 12:22:09 +0000
committerpirofti <pirofti@openbsd.org>2016-09-02 12:22:09 +0000
commita653a82bc1154a403b058895b39c91ae63e1ccd4 (patch)
treef095bc2e4929e2e95673592becd711ef911ce8ee /usr.sbin/relayd/config.c
parentmove links from http to https://www.openbsd.org/ (diff)
downloadwireguard-openbsd-a653a82bc1154a403b058895b39c91ae63e1ccd4.tar.xz
wireguard-openbsd-a653a82bc1154a403b058895b39c91ae63e1ccd4.zip
Fix misleading 'No valid MBR or GPT' message when no OpenBSD area is found.
The current code is too strict and checks for an OpenBSD area inside an MBR or GPT and if it fails to find one reports that there's no valid MBR or GPT (which is misleading because the MBR/GPT is valid). Instead, do two checks (similar to i386): first see if there's an MBR or GPT present on the disk and if there is then check for the OpenBSD area. OK krw@, halex@.
Diffstat (limited to 'usr.sbin/relayd/config.c')
0 files changed, 0 insertions, 0 deletions