From 95a33a59039f582987c86755961c97ac07338197 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Tue, 25 Sep 2012 20:47:08 +0530 Subject: gfapi: fix the failure in glfs_open() * the issue is happening because the resolve_symlink() logic was reversed Change-Id: I10eca14d82e3ebf5a0195d5db1330f9e1a3e2dc4 Signed-off-by: Amar Tumballi BUG: 839950 Reviewed-on: http://review.gluster.org/3978 Tested-by: Gluster Build System Reviewed-by: Jeff Darcy Reviewed-by: Anand Avati --- api/src/glfs-resolve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api') diff --git a/api/src/glfs-resolve.c b/api/src/glfs-resolve.c index 83667378e2c..181d1788875 100644 --- a/api/src/glfs-resolve.c +++ b/api/src/glfs-resolve.c @@ -231,7 +231,7 @@ glfs_resolve_at (struct glfs *fs, xlator_t *subvol, inode_t *at, if (!inode) break; - if (!IA_ISLNK (ciatt.ia_type) && (next_component || follow)) { + if (IA_ISLNK (ciatt.ia_type) && (next_component || follow)) { /* If the component is not the last piece, then following it is necessary even if not requested by the caller -- cgit