summaryrefslogtreecommitdiffstats
path: root/lib/libstand
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>2008-04-05 15:03:29 +0000
committerdfr <dfr@FreeBSD.org>2008-04-05 15:03:29 +0000
commita38ef196675ecf6c25c12ba514f019a89d0ff25c (patch)
treee50763dab267918de7a72d147d139891ad664f37 /lib/libstand
parent4d340bc45f015085d70c7160faf487a7ae61af6a (diff)
downloadFreeBSD-src-a38ef196675ecf6c25c12ba514f019a89d0ff25c.zip
FreeBSD-src-a38ef196675ecf6c25c12ba514f019a89d0ff25c.tar.gz
On i386, don't try to do network-type stuff if the device name is'nt pxeN.
Diffstat (limited to 'lib/libstand')
-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