summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-12-14 10:58:18 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-12-14 11:37:24 +0100
commita5167ae1d69dc6c9a88807113c9315860048f462 (patch)
tree8cf554ae99b5b0e680b4287f12defe9bdf41ab70 /configmgr
parent40c1db47ee701da5a9d2c81ad3d13bb7c8179787 (diff)
tdf#81146: try to make saving registrymodifications.xcu more robust
... by use of osl::File::replace, which is "atomic" on Windows, instead of osl::File::move. Change-Id: Ia49212f0d1cc75292f72ce219aee513e2d250ec4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126801 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/writemodfile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/configmgr/source/writemodfile.cxx b/configmgr/source/writemodfile.cxx
index 359b5d7a9a06..09fe0949b0e9 100644
--- a/configmgr/source/writemodfile.cxx
+++ b/configmgr/source/writemodfile.cxx
@@ -114,7 +114,7 @@ void TempFile::closeAndRename(const OUString &_url) {
throw css::uno::RuntimeException(
"cannot close " + url);
}
- if (osl::File::move(url, _url) != osl::FileBase::E_None) {
+ if (osl::File::replace(url, _url) != osl::FileBase::E_None) {
throw css::uno::RuntimeException(
"cannot move " + url);
}