libstand: Abort nfs_/tftp_open when called for non-network devices.
authorImre Vadász <imre@vdsz.com>
Mon, 15 Feb 2016 09:43:34 +0000 (10:43 +0100)
committerImre Vadász <imre@vdsz.com>
Mon, 21 Mar 2016 22:03:30 +0000 (23:03 +0100)
commit59d398e58308b178a01ec6b42ef8ad1e3565f09a
treea92409f6513da64da988f3227b88c0cb9286b9cc
parent28dbdb2428c65a969c8c61ba223ebc3b7ec51156
libstand: Abort nfs_/tftp_open when called for non-network devices.

- Otherwise the (work-in-progress) port of the EFI loader from FreeBSD
  crashes when nfs_open() is tried out for a disk device.

- This code isn't compiled for the existing BIOS bootloader (since it's
  conditional on "#ifndef __i386__").

Taken-From: FreeBSD
lib/libstand/nfs.c
lib/libstand/tftp.c