summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libstand/nfs.c7
1 files changed, 7 insertions, 0 deletions
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))))
OpenPOWER on IntegriCloud