aboutsummaryrefslogtreecommitdiffstats
path: root/src/platforms/posix/file.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/platforms/posix/file.cpp')
-rw-r--r--src/platforms/posix/file.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platforms/posix/file.cpp b/src/platforms/posix/file.cpp
index a920162d..f46b09ec 100644
--- a/src/platforms/posix/file.cpp
+++ b/src/platforms/posix/file.cpp
@@ -186,7 +186,7 @@ vmime::utility::outputStream* posixFileWriter::getOutputStream()
{
int fd = 0;
- if ((fd = ::open(m_nativePath.c_str(), O_RDONLY, 0660)) == -1)
+ if ((fd = ::open(m_nativePath.c_str(), O_WRONLY, 0660)) == -1)
posixFileSystemFactory::reportError(m_path, errno);
return new posixFileWriterOutputStream(m_path, fd);