aboutsummaryrefslogtreecommitdiff
path: root/lib/libstand
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>2008-04-05 15:03:29 +0000
committerDoug Rabson <dfr@FreeBSD.org>2008-04-05 15:03:29 +0000
commit472f4537e664ae5a204a2d857f03d691120aca87 (patch)
treee50763dab267918de7a72d147d139891ad664f37 /lib/libstand
parent9d4ae9aa5b292ca69134b53882773c3c0c38407e (diff)
downloadsrc-472f4537e664ae5a204a2d857f03d691120aca87.tar.gz
src-472f4537e664ae5a204a2d857f03d691120aca87.zip
On i386, don't try to do network-type stuff if the device name is'nt pxeN.
Notes
Notes: svn path=/head/; revision=177935
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 1c439a899ab7..262765166cd7 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))))