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; + } } /*