commit 03480d733369315ada5b35733796e786c807d3c1
parent 060c0d5fcb7be4942fbb582a24ae5a3aca330808
Author: rsc <devnull@localhost>
Date: Fri, 9 Jan 2004 20:07:49 +0000
Why would the Linux man page actually tell the truth?
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/lib9/dirread.c b/src/lib9/dirread.c
@@ -13,10 +13,9 @@ mygetdents(int fd, struct dirent *buf, int n)
off_t off;
int nn;
+ /* This doesn't match the man page, but it works in Debian with a 2.2 kernel */
off = p9seek(fd, 0, 1);
nn = getdirentries(fd, (void*)buf, n, &off);
- if(nn > 0)
- p9seek(fd, off, 0);
return nn;
}
#elif defined(__APPLE__) || defined(__FreeBSD__)