aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2004-12-21 12:36:18 +0000
committerVincent Richard <[email protected]>2004-12-21 12:36:18 +0000
commit228ce7f0aa21e47a1855d592af33c59bcce04946 (patch)
treeacc4926ba6149e1e3ba2106fac8804ea297d6d08
parentFixed notification when adding message to IMAP folder. (diff)
downloadvmime-228ce7f0aa21e47a1855d592af33c59bcce04946.tar.gz
vmime-228ce7f0aa21e47a1855d592af33c59bcce04946.zip
Fixed open() flags when writing to file.
-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);