diff options
Diffstat (limited to 'xlators/storage/posix/src/posix.c')
| -rw-r--r-- | xlators/storage/posix/src/posix.c | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index acb0eafd3..dcff1dbe2 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -4513,6 +4513,9 @@ posix_do_readdir (call_frame_t *frame, xlator_t *this,          }          op_ret = count; +        errno = 0; +        if ((!readdir (dir) && (errno == 0))) +                op_errno = ENOENT;   out:          STACK_UNWIND_STRICT (readdir, frame, op_ret, op_errno, &entries);  | 
