summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/server/src/server-resolve.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/protocol/server/src/server-resolve.c')
-rw-r--r--xlators/protocol/server/src/server-resolve.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/protocol/server/src/server-resolve.c b/xlators/protocol/server/src/server-resolve.c
index 4f9d97394..df16aef22 100644
--- a/xlators/protocol/server/src/server-resolve.c
+++ b/xlators/protocol/server/src/server-resolve.c
@@ -311,6 +311,7 @@ resolve_path_simple (call_frame_t *frame)
resolve->op_errno = ENOENT;
goto out;
}
+ state->loc_now->parent = inode_ref (components[par_idx].inode);
noparent:
if (!components[ino_idx].inode &&
@@ -328,7 +329,6 @@ noparent:
if (components[ino_idx].inode)
state->loc_now->inode = inode_ref (components[ino_idx].inode);
- state->loc_now->parent = inode_ref (components[par_idx].inode);
ret = 0;