diff options
author | Meghana <mmadhusu@redhat.com> | 2014-03-11 14:52:34 +0000 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2014-03-12 14:28:21 -0700 |
commit | 79d2a9e5b83b4d773e5b821c5c55f24718745cb7 (patch) | |
tree | dcf541a0fa4e1ba28fd8f2ce1ba48599307b3e16 /api/src | |
parent | 40b0bf5fc01a17e9a1628cd9ff537b7e15353958 (diff) |
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>
Diffstat (limited to 'api/src')
-rw-r--r-- | api/src/glfs-handleops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/glfs-handleops.c b/api/src/glfs-handleops.c index 5bba38b5f0c..49e0600156d 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; } } |