summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@zresearch.com>2009-04-07 05:34:24 -0700
committerAnand V. Avati <avati@amp.gluster.com>2009-04-08 15:05:38 +0530
commitccbb9c7df1d887bc835a04e0f76799770ba3e2b8 (patch)
tree1705db013fc953855bb195150432427892930be8
parent2524bf2e9cb89627833b1120eac0f78b279c1751 (diff)
libglusterfsclient: Remove spurious strcmp
This strcmp existed because of assumptions that do not hold true since the change in libglusterfsclient internals recently. This is another step in fixing the seg-fault on glusterfs_create. Patch adapted from Raghu's original fix to the problem. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
-rw-r--r--libglusterfsclient/src/libglusterfsclient-dentry.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient-dentry.c b/libglusterfsclient/src/libglusterfsclient-dentry.c
index 5c8057874e0..c030787cc13 100644
--- a/libglusterfsclient/src/libglusterfsclient-dentry.c
+++ b/libglusterfsclient/src/libglusterfsclient-dentry.c
@@ -348,12 +348,6 @@ __do_path_resolve (loc_t *loc, libglusterfs_client_ctx_t *ctx,
op_ret = libgf_client_lookup (ctx, &new_loc, NULL, NULL,
0);
if (op_ret == -1) {
- /* parent is resolved, file referred by the
- path may not be present on the storage*/
- if (strcmp (loc->path, "/") != 0) {
- op_ret = 0;
- }
-
libgf_client_loc_wipe (&new_loc);
goto out;
}