diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2014-07-15 18:02:19 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2014-07-15 18:02:19 +0200 |
commit | b49cf754f9d2db3a426aeb6111fa94d90270fb93 (patch) | |
tree | 18aca31da248e19e1072e6c40d21cb198d05c5ac /example/fusexmp.c | |
parent | 978d10a42b2cfccf6bfc4df1cfad480ac3bbcb3d (diff) | |
download | libfuse-b49cf754f9d2db3a426aeb6111fa94d90270fb93.tar.gz |
libfuse: add flags to ->rename()
See renameat2() system call in linux-3.15 and later kernels.
Diffstat (limited to 'example/fusexmp.c')
-rwxr-xr-x | example/fusexmp.c | 5 |
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; |