Commit f91b90993f0d286be89f06c2f547ced8cfe291c6

Authored by Martin Stava
Committed by Eric Van Hensbergen
1 parent b6727b12dd

9p: fix a small bug in readdir for long directories

Here is a proposed patch for bug in readdir. Listing of dirs with
many files fails without this patch.

Signed-off-by: Martin Stava <martin.stava@gmail.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -90,6 +90,7 @@
90 90 if (err <= 0)
91 91 break;
92 92  
  93 + i = 0;
93 94 n = err;
94 95 while (i < n) {
95 96 err = p9stat_read(statbuf + i, buflen-i, &st,