summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--api/src/glfs-resolve.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/api/src/glfs-resolve.c b/api/src/glfs-resolve.c
index 0ad9ce723c8..7cd1e47bc8f 100644
--- a/api/src/glfs-resolve.c
+++ b/api/src/glfs-resolve.c
@@ -450,7 +450,9 @@ glfs_resolve_at (struct glfs *fs, xlator_t *subvol, inode_t *at,
ret = 0;
}
- ret = glfs_loc_touchup (loc);
+ if (glfs_loc_touchup (loc) < 0) {
+ ret = -1;
+ }
out:
GF_FREE (path);