diff options
author | jake <jake@FreeBSD.org> | 2002-07-07 23:01:36 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2002-07-07 23:01:36 +0000 |
commit | 9c4815fb2170a6fe82ab28145f6a5d1f8741df10 (patch) | |
tree | 4d2ee5fe7541176269bf72a02f2748d1a693cf17 /lib/libstand/nfs.c | |
parent | 9ed546fad03342ad6c879e512a76b9830af82d26 (diff) | |
download | FreeBSD-src-9c4815fb2170a6fe82ab28145f6a5d1f8741df10.zip FreeBSD-src-9c4815fb2170a6fe82ab28145f6a5d1f8741df10.tar.gz |
Add a hack (kludge?) to avoid trying to access files backed by disk
devices as though they were backed by network devices.
Diffstat (limited to 'lib/libstand/nfs.c')
-rw-r--r-- | lib/libstand/nfs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libstand/nfs.c b/lib/libstand/nfs.c index 1b9e8d2..e126a85 100644 --- a/lib/libstand/nfs.c +++ b/lib/libstand/nfs.c @@ -408,6 +408,10 @@ nfs_open(upath, f) return (ENXIO); } +#ifdef __sparc64__ + if (strcmp(f->f_dev->dv_name, "net") != 0) + return(EINVAL); +#endif if (!(desc = socktodesc(*(int *)(f->f_devdata)))) return(EINVAL); |