Skip to content

Commit

Permalink
Fix error return value from rename()
Browse files Browse the repository at this point in the history
Fuse operations expect negated errno values.
  • Loading branch information
Quentin Rameau authored and Nikratio committed Jul 25, 2018
1 parent 30a2668 commit 6480b66
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Unreleased Changes
------------------

* Fixed error code returned by rename(), allowing proper fallback.

Release 3.4.0 (2018-06-29)
--------------------------

Expand Down
2 changes: 1 addition & 1 deletion sshfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2316,7 +2316,7 @@ static int sshfs_rename(const char *from, const char *to, unsigned int flags)
int err;

if(flags != 0)
return EINVAL;
return -EINVAL;

if (sshfs.ext_posix_rename)
err = sshfs_ext_posix_rename(from, to);
Expand Down

0 comments on commit 6480b66

Please sign in to comment.