Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
unix: handle readdir errors in uv__fs_after()
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Sep 14, 2011
1 parent 337ff16 commit 76216d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/unix/fs.c
Expand Up @@ -116,6 +116,9 @@ static int uv__fs_after(eio_req* eio) {

switch (req->fs_type) {
case UV_FS_READDIR:
if (req->eio->result == -1)
break; /* opendir() or readdir() operation failed. */

/*
* XXX This is pretty bad.
* We alloc and copy the large null terminated string list from libeio.
Expand Down

0 comments on commit 76216d8

Please sign in to comment.