diff --git a/lib/libstand/tftp.c b/lib/libstand/tftp.c index aa331b3..f87de39 100644 --- a/lib/libstand/tftp.c +++ b/lib/libstand/tftp.c @@ -400,10 +400,15 @@ tftp_open(const char *path, struct open_file *f) struct iodesc *io; int res; -#ifndef __i386__ if (strcmp(f->f_dev->dv_name, "net") != 0) + { +#ifndef __i386__ + if (strcmp(f->f_dev->dv_name, "pxe") != 0) + return (EINVAL); +#else return (EINVAL); #endif + } if (is_open) return (EBUSY);