From 64addbf0b56d56f1ede726d0b7b4d12882d9cf40 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Mon, 20 Dec 2004 09:28:04 +0000 Subject: [PATCH] Changed permissions when creating file/directory. --- src/platforms/posix/file.cpp | 4 ++-- 1 file 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); }