desktop/win32/source/loader.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 30c6ff74b5a6068ffb9479761edbd8224e83211a Author: Thorsten Behrens <thorsten.behr...@cib.de> AuthorDate: Tue Sep 17 13:56:38 2019 +0200 Commit: Thorsten Behrens <thorsten.behr...@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.behr...@cib.de> Tested-by: Thorsten Behrens <thorsten.behr...@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); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits