summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2017-02-07 12:27:54 +0100
committerMichael Meeks <michael.meeks@collabora.com>2017-02-07 13:38:47 +0000
commite5b062758950b0d6c5cea0a1914998433ef19774 (patch)
tree8bace0f741932a40851c19ee30f84616fdd6e2c4 /configmgr
parent3b9073d2bad6e9026a910980cc4a09769fabc9ac (diff)
configmgr: add SAL_CONFIG_WINREG_RETAIN_TMP variable.
Windows registry dumping behaves very strangely, and in hard to debug ways - this should help in-the-field debugging of this in future. Change-Id: Ia35d58a8be36d1b683db39ae7d2128a3ccfd10a5 Reviewed-on: https://gerrit.libreoffice.org/33992 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/components.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/configmgr/source/components.cxx b/configmgr/source/components.cxx
index 7eb87968811a..7fdb43a3497b 100644
--- a/configmgr/source/components.cxx
+++ b/configmgr/source/components.cxx
@@ -561,7 +561,8 @@ Components::Components(
OUString aTempFileURL;
if (dumpWindowsRegistry(&aTempFileURL, eType)) {
parseFileLeniently(&parseXcuFile, aTempFileURL, layer, nullptr, nullptr, nullptr);
- osl::File::remove(aTempFileURL);
+ if (!getenv("SAL_CONFIG_WINREG_RETAIN_TMP"))
+ osl::File::remove(aTempFileURL);
}
++layer; //TODO: overflow
#endif