diff options
author | Quentin Rameau <quinq@fifth.space> | 2018-07-25 10:59:43 +0100 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2018-07-25 11:03:01 +0100 |
commit | 6480b66bd64a2d2f58db6fc0a3320f4464f4669e (patch) | |
tree | c923b399448c3248780444d2b563676abae0c536 /sshfs.c | |
parent | 30a2668b99ed2f513e008a47e9ea09549f6afe2e (diff) | |
download | sshfs-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |