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/subdir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/modules/subdir.c') 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