Fix error return value from rename()

Fuse operations expect negated errno values.
This commit is contained in:
Quentin Rameau 2018-07-25 10:59:43 +01:00 committed by Nikolaus Rath
parent 30a2668b99
commit 6480b66bd6
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Unreleased Changes
------------------
* Fixed error code returned by rename(), allowing proper fallback.
Release 3.4.0 (2018-06-29)
--------------------------

View File

@ -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);