summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2015-01-22 10:07:56 +0100
committerKarolin Seeger <kseeger@samba.org>2015-12-18 10:26:22 +0100
commit8b3e19b62c11b273da43a283eaa25f5d75ffa864 (patch)
tree9d4c86d4bb43ffcfc2618af792d700336047fe6c
parent3a1a67eef4202d64af8be9f0d297f0aeb3f3e6bf (diff)
downloadsamba-8b3e19b62c11b273da43a283eaa25f5d75ffa864.tar.gz
vfs_fruit: enable POSIX directory rename semantics
Bug: https://bugzilla.samba.org/show_bug.cgi?id=11065 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 1d7bef5a75403f5baec13aa6264dfe763a4b278a)
-rw-r--r--source3/modules/vfs_fruit.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c
index 02906c621d8..17da6292dad 100644
--- a/source3/modules/vfs_fruit.c
+++ b/source3/modules/vfs_fruit.c
@@ -3363,6 +3363,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;
+ }
}
/*