diff options
Diffstat (limited to 'lib/libstand/nfs.c')
-rw-r--r-- | lib/libstand/nfs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libstand/nfs.c b/lib/libstand/nfs.c index 36986db..19bc73c 100644 --- a/lib/libstand/nfs.c +++ b/lib/libstand/nfs.c @@ -473,6 +473,9 @@ nfs_open(const char *upath, struct open_file *f) int error; char *path; + if (netproto != NET_NFS) + return (EINVAL); + #ifdef NFS_DEBUG if (debug) printf("nfs_open: %s (rootpath=%s)\n", upath, rootpath); @@ -1115,6 +1118,9 @@ nfs_open(const char *upath, struct open_file *f) int error; char *path; + if (netproto != NET_NFS) + return (EINVAL); + #ifdef NFS_DEBUG if (debug) printf("nfs_open: %s (rootpath=%s)\n", upath, rootpath); |