Add a hack (kludge?) to avoid trying to access files backed by disk
devices as though they were backed by network devices.
This commit is contained in:
parent
9ed546fad0
commit
9c4815fb21
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user