aboutsummaryrefslogtreecommitdiff
path: root/sshfs.c
diff options
context:
space:
mode:
authorQuentin Rameau <quinq@fifth.space>2018-07-25 10:59:43 +0100
committerNikolaus Rath <Nikolaus@rath.org>2018-07-25 11:03:01 +0100
commit6480b66bd64a2d2f58db6fc0a3320f4464f4669e (patch)
treec923b399448c3248780444d2b563676abae0c536 /sshfs.c
parent30a2668b99ed2f513e008a47e9ea09549f6afe2e (diff)
downloadsshfs-6480b66bd64a2d2f58db6fc0a3320f4464f4669e.tar
sshfs-6480b66bd64a2d2f58db6fc0a3320f4464f4669e.tar.gz
sshfs-6480b66bd64a2d2f58db6fc0a3320f4464f4669e.tar.bz2
sshfs-6480b66bd64a2d2f58db6fc0a3320f4464f4669e.zip
Fix error return value from rename()
Fuse operations expect negated errno values.
Diffstat (limited to 'sshfs.c')
-rw-r--r--sshfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sshfs.c b/sshfs.c
index 5ae54c5..a6e7bf2 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -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);