From ccbb9c7df1d887bc835a04e0f76799770ba3e2b8 Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Tue, 7 Apr 2009 05:34:24 -0700 Subject: 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 --- libglusterfsclient/src/libglusterfsclient-dentry.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'libglusterfsclient/src/libglusterfsclient-dentry.c') diff --git a/libglusterfsclient/src/libglusterfsclient-dentry.c b/libglusterfsclient/src/libglusterfsclient-dentry.c index 5c8057874..c030787cc 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; } -- cgit