summaryrefslogtreecommitdiffstats
path: root/lib/libstand/nfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libstand/nfs.c')
-rw-r--r--lib/libstand/nfs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libstand/nfs.c b/lib/libstand/nfs.c
index 82fa08b..1c439a8 100644
--- a/lib/libstand/nfs.c
+++ b/lib/libstand/nfs.c
@@ -674,6 +674,7 @@ nfs_seek(f, offset, where)
d->off = size - offset;
break;
default:
+ errno = EINVAL;
return (-1);
}
@@ -741,7 +742,7 @@ nfs_readdir(struct open_file *f, struct dirent *d)
buf = rdata.d;
roff = (struct nfs_readdir_off *)buf;
if (ntohl(roff->cookie) != 0)
- return 1;
+ return EIO;
}
roff = (struct nfs_readdir_off *)buf;
@@ -749,7 +750,7 @@ nfs_readdir(struct open_file *f, struct dirent *d)
eof = ntohl((roff+1)->cookie);
if (eof) {
cookie = 0;
- return 1;
+ return ENOENT;
}
goto refill;
}
OpenPOWER on IntegriCloud