diff options
author | 2015-11-18 02:32:56 +0000 | |
---|---|---|
committer | 2015-11-18 02:32:56 +0000 | |
commit | f65ec0feac18fcd9855b994458895d4b99b546e5 (patch) | |
tree | fe14b0a9520839ce47479d93d3bc6f9b81bee39c /lib/libc/sys | |
parent | USER_edit() (a.k.a. -e) edits the on-disk information. So zap GPT (diff) | |
download | wireguard-openbsd-f65ec0feac18fcd9855b994458895d4b99b546e5.tar.xz wireguard-openbsd-f65ec0feac18fcd9855b994458895d4b99b546e5.zip |
Rejig the MBR file reading logic so
1) If mbr_file is NULL use built-in mbr for -i, -u and 'reinit'.
2) If mbr_file cannot be opened issue a warning and use built-in mbr for -i,
-u, and 'reinit'.
3) If mbr_file can't be read, bail out of fdisk.
4) Use the mbr read from mbr_file for -i, -u, and 'reinit'.
Remove inappropriate GPT dancing.
This restores pre-GPT-editing mbr_file handling and makes the logic
clearer at the expense of a tiny bit of duplication.
Diffstat (limited to 'lib/libc/sys')
0 files changed, 0 insertions, 0 deletions