From 8dcad50137bdcfd1fd1ef444b3397bdec1d5417a Mon Sep 17 00:00:00 2001 From: Armin Le Grand Date: Fri, 21 Oct 2016 17:51:19 +0200 Subject: [PATCH] profilesafe: Make sure no recursive saving happens Change-Id: Idd57a948fcaaf23614ca1a92051a50b86e4bb0c5 Reviewed-on: https://gerrit.libreoffice.org/30145 Tested-by: Jenkins Reviewed-by: Armin Le Grand --- comphelper/source/misc/backupfilehelper.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/comphelper/source/misc/backupfilehelper.cxx b/comphelper/source/misc/backupfilehelper.cxx index d8780d94b7de..0615117d366d 100644 --- a/comphelper/source/misc/backupfilehelper.cxx +++ b/comphelper/source/misc/backupfilehelper.cxx @@ -2613,6 +2613,10 @@ namespace comphelper maDirs, maFiles); + // should not extist, but for the case an error occurred and it got + // copied somehow, avoid further recurive copying/saving + maDirs.erase("SafeMode"); + // not really needed, can be abandoned maDirs.erase("psprint");