aboutsummaryrefslogtreecommitdiffstats
path: root/example/fusexmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'example/fusexmp.c')
-rwxr-xr-xexample/fusexmp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/example/fusexmp.c b/example/fusexmp.c
index fe20f57..eae3562 100755
--- a/example/fusexmp.c
+++ b/example/fusexmp.c
@@ -172,10 +172,13 @@ static int xmp_symlink(const char *from, const char *to)
return 0;
}
-static int xmp_rename(const char *from, const char *to)
+static int xmp_rename(const char *from, const char *to, unsigned int flags)
{
int res;
+ if (flags)
+ return -EINVAL;
+
res = rename(from, to);
if (res == -1)
return -errno;