diff options
Diffstat (limited to 'libglusterfsclient/src/libglusterfsclient.c')
| -rwxr-xr-x | libglusterfsclient/src/libglusterfsclient.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c index e02cbdc770b..c44e67474de 100755 --- a/libglusterfsclient/src/libglusterfsclient.c +++ b/libglusterfsclient/src/libglusterfsclient.c @@ -1528,8 +1528,8 @@ glusterfs_open (glusterfs_handle_t handle,  	loc.path = strdup (path);  	op_ret = libgf_client_path_lookup (&loc, ctx, 1); -	if ((op_ret == -1) && ((errno != ENOENT)  -                               && ((flags & O_CREAT) != O_CREAT))) { + +        if ((op_ret == -1) && ((flags & O_CREAT) != O_CREAT)) {  		gf_log ("libglusterfsclient",  			GF_LOG_ERROR,  			"path lookup failed for (%s)", path);  | 
