From b49cf754f9d2db3a426aeb6111fa94d90270fb93 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Tue, 15 Jul 2014 18:02:19 +0200 Subject: libfuse: add flags to ->rename() See renameat2() system call in linux-3.15 and later kernels. --- lib/modules/iconv.c | 4 ++-- lib/modules/subdir.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/modules') diff --git a/lib/modules/iconv.c b/lib/modules/iconv.c index 7d96c17..174e2b9 100644 --- a/lib/modules/iconv.c +++ b/lib/modules/iconv.c @@ -281,7 +281,7 @@ static int iconv_symlink(const char *from, const char *to) return err; } -static int iconv_rename(const char *from, const char *to) +static int iconv_rename(const char *from, const char *to, unsigned int flags) { struct iconv *ic = iconv_get(); char *newfrom; @@ -290,7 +290,7 @@ static int iconv_rename(const char *from, const char *to) if (!err) { err = iconv_convpath(ic, to, &newto, 0); if (!err) { - err = fuse_fs_rename(ic->next, newfrom, newto); + err = fuse_fs_rename(ic->next, newfrom, newto, flags); free(newto); } free(newfrom); diff --git a/lib/modules/subdir.c b/lib/modules/subdir.c index 05eccdf..a039b3c 100644 --- a/lib/modules/subdir.c +++ b/lib/modules/subdir.c @@ -267,7 +267,7 @@ static int subdir_symlink(const char *from, const char *path) return err; } -static int subdir_rename(const char *from, const char *to) +static int subdir_rename(const char *from, const char *to, unsigned int flags) { struct subdir *d = subdir_get(); char *newfrom; @@ -276,7 +276,7 @@ static int subdir_rename(const char *from, const char *to) if (!err) { err = subdir_addpath(d, to, &newto); if (!err) { - err = fuse_fs_rename(d->next, newfrom, newto); + err = fuse_fs_rename(d->next, newfrom, newto, flags); free(newto); } free(newfrom); -- cgit v1.2.3