diff options
author | Jake Burkholder <jake@FreeBSD.org> | 2002-07-07 23:01:36 +0000 |
---|---|---|
committer | Jake Burkholder <jake@FreeBSD.org> | 2002-07-07 23:01:36 +0000 |
commit | f9751ec2cd2a2c120699dae1eff650c1a56fb861 (patch) | |
tree | 4d2ee5fe7541176269bf72a02f2748d1a693cf17 /lib | |
parent | 1f0b8b758229195cbc0ddbc76773f003c64f7cd0 (diff) | |
download | src-f9751ec2cd2a2c120699dae1eff650c1a56fb861.tar.gz src-f9751ec2cd2a2c120699dae1eff650c1a56fb861.zip |
Add a hack (kludge?) to avoid trying to access files backed by disk
devices as though they were backed by network devices.
Notes
Notes:
svn path=/head/; revision=99558
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libstand/nfs.c | 4 | ||||
-rw-r--r-- | lib/libstand/tftp.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/libstand/nfs.c b/lib/libstand/nfs.c index 1b9e8d2eca34..e126a85f7c4c 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); diff --git a/lib/libstand/tftp.c b/lib/libstand/tftp.c index 739015d38aef..357cf00d17b0 100644 --- a/lib/libstand/tftp.c +++ b/lib/libstand/tftp.c @@ -254,6 +254,10 @@ tftp_open(path, f) struct iodesc *io; int res; +#ifdef __sparc64__ + if (strcmp(f->f_dev->dv_name, "net") != 0) + return (EINVAL); +#endif tftpfile = (struct tftp_handle *) malloc(sizeof(*tftpfile)); if (!tftpfile) return (ENOMEM); |