From b9d94056e555c2386cee3344db23518a47970a97 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Thu, 27 Oct 2011 23:13:43 +0530 Subject: check the return value of inode_path for less than or equal to zero Change-Id: I9bbdfe79664c1339b66819a6c7ea4b7698beb5c6 BUG: 3757 Reviewed-on: http://review.gluster.com/640 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi --- xlators/protocol/client/src/client-handshake.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/protocol/client/src') diff --git a/xlators/protocol/client/src/client-handshake.c b/xlators/protocol/client/src/client-handshake.c index b18d3a27e7e..fc8ed21b0be 100644 --- a/xlators/protocol/client/src/client-handshake.c +++ b/xlators/protocol/client/src/client-handshake.c @@ -597,7 +597,7 @@ protocol_client_reopendir (xlator_t *this, clnt_fd_ctx_t *fdctx) conf = this->private; ret = inode_path (inode, NULL, &path); - if (ret < 0) { + if (ret <= 0) { gf_log (this->name, GF_LOG_WARNING, "couldn't build path from inode %s", uuid_utoa (inode->gfid)); @@ -677,7 +677,7 @@ protocol_client_reopen (xlator_t *this, clnt_fd_ctx_t *fdctx) conf = this->private; ret = inode_path (inode, NULL, &path); - if (ret < 0) { + if (ret <= 0) { gf_log (this->name, GF_LOG_WARNING, "couldn't build path from inode %s", uuid_utoa (inode->gfid)); -- cgit