diff --git a/lib/libstand/nfs.c b/lib/libstand/nfs.c index 1c439a899ab..262765166cd 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))))