From f8bd0559ada056722d7d5ae0286753e7c591650b Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 23 Nov 2009 15:01:34 -0800 Subject: Proper fix for #6898 - Samba duplicates file content on appending. Pointed out by Volker.Restores the pathname handling for FILE_FLAG_POSIX_SEMANTICS but still prevents the O_APPEND problems. Jeremy. --- source3/smbd/filename.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/smbd/filename.c') diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c index 5d6661df2a..16e36312bb 100644 --- a/source3/smbd/filename.c +++ b/source3/smbd/filename.c @@ -238,7 +238,8 @@ NTSTATUS unix_convert(TALLOC_CTX *ctx, } } - posix_pathnames = lp_posix_pathnames(); + posix_pathnames = (lp_posix_pathnames() || + (ucf_flags & UCF_POSIX_PATHNAMES)); /* * Strip off the stream, and add it back when we're done with the -- cgit