summaryrefslogtreecommitdiffstats
path: root/lib/libstand
diff options
context:
space:
mode:
authorsjg <sjg@FreeBSD.org>2013-10-13 02:35:19 +0000
committersjg <sjg@FreeBSD.org>2013-10-13 02:35:19 +0000
commit7fcd33c1faf567506b5c0b4148c7a15a10788a5d (patch)
tree2c6f4d1ca5d1c643faea64e1f4c90105a1ab406a /lib/libstand
parent2a59274eda20cc626e28052fff7aa8b7bf6a3683 (diff)
parent5cca672bb0892f1c5da630c34a1f98e2de4d7064 (diff)
downloadFreeBSD-src-7fcd33c1faf567506b5c0b4148c7a15a10788a5d.zip
FreeBSD-src-7fcd33c1faf567506b5c0b4148c7a15a10788a5d.tar.gz
Merge head@256284
Diffstat (limited to 'lib/libstand')
-rw-r--r--lib/libstand/tftp.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libstand/tftp.c b/lib/libstand/tftp.c
index aa331b3..e3983c3 100644
--- a/lib/libstand/tftp.c
+++ b/lib/libstand/tftp.c
@@ -400,10 +400,14 @@ 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)
+ if (strcmp(f->f_dev->dv_name, "net") != 0) {
+#ifdef __i386__
+ if (strcmp(f->f_dev->dv_name, "pxe") != 0)
+ return (EINVAL);
+#else
return (EINVAL);
#endif
+ }
if (is_open)
return (EBUSY);
OpenPOWER on IntegriCloud