From a38ef196675ecf6c25c12ba514f019a89d0ff25c Mon Sep 17 00:00:00 2001 From: dfr Date: Sat, 5 Apr 2008 15:03:29 +0000 Subject: On i386, don't try to do network-type stuff if the device name is'nt pxeN. --- lib/libstand/nfs.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/libstand') diff --git a/lib/libstand/nfs.c b/lib/libstand/nfs.c index 1c439a8..2627651 100644 --- a/lib/libstand/nfs.c +++ b/lib/libstand/nfs.c @@ -412,9 +412,16 @@ nfs_open(upath, f) return (ENXIO); } + /* + * This is silly - we should look at dv_type but that value is + * arch dependant and we can't use it here. + */ #ifndef __i386__ if (strcmp(f->f_dev->dv_name, "net") != 0) return(EINVAL); +#else + if (strcmp(f->f_dev->dv_name, "pxe") != 0) + return(EINVAL); #endif if (!(desc = socktodesc(*(int *)(f->f_devdata)))) -- cgit v1.1