aboutsummaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-rw-r--r--example/memfs_ll.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/example/memfs_ll.cc b/example/memfs_ll.cc
index 68f8e96..ad0b187 100644
--- a/example/memfs_ll.cc
+++ b/example/memfs_ll.cc
@@ -905,10 +905,12 @@ static void memfs_rename(fuse_req_t req, fuse_ino_t parent, const char *name,
Dentry *child_dentry_copy = nullptr;
Dentry *existing_dentry = nullptr;
+#if defined(RENAME_EXCHANGE) && defined(RENAME_NOREPLACE)
if (flags & (RENAME_EXCHANGE | RENAME_NOREPLACE)) {
fuse_reply_err(req, EINVAL);
return;
}
+#endif
Inodes.lock();