summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
Diffstat (limited to 'api')
-rw-r--r--api/src/glfs-handleops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/glfs-handleops.c b/api/src/glfs-handleops.c
index 5bba38b5f..49e060015 100644
--- a/api/src/glfs-handleops.c
+++ b/api/src/glfs-handleops.c
@@ -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;
}
}