summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorAmar Tumballi <amarts@redhat.com>2012-09-25 20:47:08 +0530
committerAnand Avati <avati@redhat.com>2012-09-25 10:53:18 -0700
commit95a33a59039f582987c86755961c97ac07338197 (patch)
tree5574a1882a5aaf57d00bddf35ffd235139c949a9 /api
parent7add67bcca82e438b4aece5aad096a08a866e26c (diff)
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 <amarts@redhat.com> BUG: 839950 Reviewed-on: http://review.gluster.org/3978 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Jeff Darcy <jdarcy@redhat.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'api')
-rw-r--r--api/src/glfs-resolve.c2
1 files changed, 1 insertions, 1 deletions
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