Changing the errno in glfs_h_rename

Change-Id: I006215d910ee854aee488f3880f39ed425f294cc
BUG: 1075488
Reviewed-on: http://review.gluster.org/7226
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
This commit is contained in:
Meghana 2014-03-11 14:52:34 +00:00 committed by Anand Avati
parent 40b0bf5fc0
commit 79d2a9e5b8

View File

@ -1262,7 +1262,7 @@ glfs_h_rename (struct glfs *fs, struct glfs_object *olddir, const char *oldname,
* or both must be non-dirs. Else, fail.
*/
ret = -1;
errno = EISDIR;
errno = EEXIST;
goto out;
}
}