diff options
author | Atin Mukherjee <amukherj@redhat.com> | 2014-11-21 12:20:07 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-11-30 21:41:49 -0800 |
commit | a435f62853832d3b5a52ab20227399ea921fc8ce (patch) | |
tree | 8484d58982809cb8f990dd5eeecdd855ee77d54f /xlators/storage | |
parent | 45af6c5fc385f2c948bdb387585b3e0a41ccbcde (diff) |
posix: remove duplicate dirfd calls in posix_opendir
BUG: 1168910
Change-Id: I285d352d20374bb3edee2db42d062d4724198425
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
Reviewed-on: http://review.gluster.org/9186
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/storage')
-rw-r--r-- | xlators/storage/posix/src/posix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 0bf6c6f57ff..0dcaff08291 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -934,7 +934,7 @@ posix_opendir (call_frame_t *frame, xlator_t *this, pfd->dir = dir; pfd->dir_eof = -1; - pfd->fd = dirfd (dir); + pfd->fd = op_ret; op_ret = fd_ctx_set (fd, this, (uint64_t)(long)pfd); if (op_ret) |