Skip to content

Commit 6480b66

Browse files
Quentin RameauNikratio
authored andcommitted
Fix error return value from rename()
Fuse operations expect negated errno values.
1 parent 30a2668 commit 6480b66

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

ChangeLog.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Unreleased Changes
2+
------------------
3+
4+
* Fixed error code returned by rename(), allowing proper fallback.
5+
16
Release 3.4.0 (2018-06-29)
27
--------------------------
38

sshfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2316,7 +2316,7 @@ static int sshfs_rename(const char *from, const char *to, unsigned int flags)
23162316
int err;
23172317

23182318
if(flags != 0)
2319-
return EINVAL;
2319+
return -EINVAL;
23202320

23212321
if (sshfs.ext_posix_rename)
23222322
err = sshfs_ext_posix_rename(from, to);

0 commit comments

Comments
 (0)