From 1d7bef5a75403f5baec13aa6264dfe763a4b278a Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Thu, 22 Jan 2015 10:07:56 +0100 Subject: [PATCH] vfs_fruit: enable POSIX directory rename semantics Bug: https://bugzilla.samba.org/show_bug.cgi?id=11065 Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/modules/vfs_fruit.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index 79c6651dbb6..e9a54b04e24 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -3404,6 +3404,13 @@ static NTSTATUS fruit_create_file(vfs_handle_struct *handle, */ fsp->aapl_copyfile_supported = true; } + + if (fsp->is_directory) { + /* + * Enable POSIX directory rename behaviour + */ + fsp->posix_flags |= FSP_POSIX_FLAGS_RENAME; + } } /* -- 2.34.1