From a435f62853832d3b5a52ab20227399ea921fc8ce Mon Sep 17 00:00:00 2001 From: Atin Mukherjee Date: Fri, 21 Nov 2014 12:20:07 +0530 Subject: posix: remove duplicate dirfd calls in posix_opendir BUG: 1168910 Change-Id: I285d352d20374bb3edee2db42d062d4724198425 Signed-off-by: Atin Mukherjee Reviewed-on: http://review.gluster.org/9186 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/storage/posix/src/posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/storage') 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) -- cgit