Fixed open() flags when writing to file.
This commit is contained in:
parent
bf2c777691
commit
228ce7f0aa
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user