diff options
Diffstat (limited to 'libglusterfsclient')
-rwxr-xr-x | libglusterfsclient/src/libglusterfsclient.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c index 40273d5de5b..e02cbdc770b 100755 --- a/libglusterfsclient/src/libglusterfsclient.c +++ b/libglusterfsclient/src/libglusterfsclient.c @@ -1543,6 +1543,9 @@ glusterfs_open (glusterfs_handle_t handle, goto out; } + pathname = strdup (path); + name = basename (pathname); + ret = libgf_client_loc_fill (&loc, ctx, 0, loc.parent->ino, name); if (ret == -1) { gf_log ("libglusterfsclient", @@ -1552,9 +1555,6 @@ glusterfs_open (glusterfs_handle_t handle, goto out; } - pathname = strdup (path); - name = basename (pathname); - this = ctx->gf_ctx.graph; fd = fd_create (loc.inode, 0); fd->flags = flags; |