[Libreoffice-commits] core.git: desktop/win32
Thorsten Behrens (via logerrit)
logerrit at kemper.freedesktop.org
Tue Sep 17 14:55:50 UTC 2019
desktop/win32/source/loader.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 30c6ff74b5a6068ffb9479761edbd8224e83211a
Author: Thorsten Behrens <Thorsten.Behrens at CIB.de>
AuthorDate: Tue Sep 17 13:56:38 2019 +0200
Commit: Thorsten Behrens <Thorsten.Behrens at CIB.de>
CommitDate: Tue Sep 17 16:54:43 2019 +0200
WIN make sure bootstrap.ini is openend read-only
As fstream opens read-write by default, and obviously usually program
dir content is not modifiable..
Change-Id: I16ade5a87e50c2e94d3f4df3f59fc298b40ceb7f
Reviewed-on: https://gerrit.libreoffice.org/79061
Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
diff --git a/desktop/win32/source/loader.cxx b/desktop/win32/source/loader.cxx
index 8b750f45df6c..6eab8ddaf24a 100644
--- a/desktop/win32/source/loader.cxx
+++ b/desktop/win32/source/loader.cxx
@@ -26,6 +26,7 @@
#include <desktop/exithelper.h>
#include <tools/pathutils.hxx>
+#include <fstream>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/ini_parser.hpp>
@@ -178,7 +179,7 @@ int officeloader_impl(bool bAllowConsole)
try
{
boost::property_tree::ptree pt;
- std::fstream aFile(szBootstrapIni);
+ std::ifstream aFile(szBootstrapIni);
boost::property_tree::ini_parser::read_ini(aFile, pt);
nMaxMemoryInMB = pt.get("Win32.LimitMaximumMemoryInMB", nMaxMemoryInMB);
bExcludeChildProcesses = pt.get("Win32.ExcludeChildProcessesFromLimit", bExcludeChildProcesses);
More information about the Libreoffice-commits
mailing list