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:
parent
40b0bf5fc0
commit
79d2a9e5b8
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user