diff options
author | rsc <devnull@localhost> | 2004-01-09 20:07:49 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-01-09 20:07:49 +0000 |
commit | 03480d733369315ada5b35733796e786c807d3c1 (patch) | |
tree | 34d1f8421be60ff7e5d70d51efb6834cf7fe94db | |
parent | 060c0d5fcb7be4942fbb582a24ae5a3aca330808 (diff) | |
download | plan9port-03480d733369315ada5b35733796e786c807d3c1.tar.gz plan9port-03480d733369315ada5b35733796e786c807d3c1.tar.bz2 plan9port-03480d733369315ada5b35733796e786c807d3c1.zip |
Why would the Linux man page actually tell the truth?
-rw-r--r-- | src/lib9/dirread.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib9/dirread.c b/src/lib9/dirread.c index db80c357..aef0102f 100644 --- 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__) |