summaryrefslogtreecommitdiff
path: root/source3/smbd/filename.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-11-23 15:01:34 -0800
committerJeremy Allison <jra@samba.org>2009-11-23 15:05:23 -0800
commitf8bd0559ada056722d7d5ae0286753e7c591650b (patch)
treef19a63c6f203a9ede074d81672fbafd7d99e5894 /source3/smbd/filename.c
parent8353d47e9b2eda9d5711610b672a183eb414c6a3 (diff)
downloadsamba-f8bd0559ada056722d7d5ae0286753e7c591650b.tar.gz
samba-f8bd0559ada056722d7d5ae0286753e7c591650b.tar.bz2
samba-f8bd0559ada056722d7d5ae0286753e7c591650b.zip
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.
Diffstat (limited to 'source3/smbd/filename.c')
-rw-r--r--source3/smbd/filename.c3
1 files changed, 2 insertions, 1 deletions
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