diff options
author | Vincent Richard <[email protected]> | 2004-12-20 09:28:04 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2004-12-20 09:28:04 +0000 |
commit | 64addbf0b56d56f1ede726d0b7b4d12882d9cf40 (patch) | |
tree | cd4a4172b29ab5277190db23bd6b94a51f3a8c3e | |
parent | More details in function doc. (diff) | |
download | vmime-64addbf0b56d56f1ede726d0b7b4d12882d9cf40.tar.gz vmime-64addbf0b56d56f1ede726d0b7b4d12882d9cf40.zip |
Changed permissions when creating file/directory.
-rw-r--r-- | src/platforms/posix/file.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/platforms/posix/file.cpp b/src/platforms/posix/file.cpp index ad31c49d..a920162d 100644 --- a/src/platforms/posix/file.cpp +++ b/src/platforms/posix/file.cpp @@ -208,7 +208,7 @@ vmime::utility::inputStream* posixFileReader::getInputStream() { int fd = 0; - if ((fd = ::open(m_nativePath.c_str(), O_RDONLY, 0660)) == -1) + if ((fd = ::open(m_nativePath.c_str(), O_RDONLY, 0640)) == -1) posixFileSystemFactory::reportError(m_path, errno); return new posixFileReaderInputStream(m_path, fd); @@ -373,7 +373,7 @@ void posixFile::createDirectoryImpl(const vmime::utility::file::path& fullPath, if (!path.isEmpty() && recursive) createDirectoryImpl(fullPath, path.getParent(), true); - if (::mkdir(nativePath.c_str(), 0660) != 0) + if (::mkdir(nativePath.c_str(), 0750) != 0) posixFileSystemFactory::reportError(fullPath, errno); } |