From c844a595de964d0e21d28ea7ad5cadaa2bf14030 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=B0=91=E5=8B=87?= Date: Thu, 29 Sep 2022 13:22:53 +0800 Subject: [PATCH] =?UTF-8?q?138686=20=E3=80=90KVE-2022-0805=E3=80=91?= =?UTF-8?q?=E9=93=B6=E6=B2=B3=E9=BA=92=E9=BA=9F=E6=A1=8C=E9=9D=A2=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E7=B3=BB=E7=BB=9FV10=5Fcom.kylin.backup=20Dbus?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=88=A0=E9=99=A4=E4=BB=BB=E6=84=8F=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=A4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backup-daemon/deletebackupproxy.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backup-daemon/deletebackupproxy.cpp b/backup-daemon/deletebackupproxy.cpp index 44ed656..13fa39f 100755 --- a/backup-daemon/deletebackupproxy.cpp +++ b/backup-daemon/deletebackupproxy.cpp @@ -1,6 +1,7 @@ #include "deletebackupproxy.h" #include #include +#include #include #include "../common/utils.h" @@ -51,7 +52,7 @@ bool DeleteBackupProxy::deleteXmlBackupPoint() m_backupPoint = parse.findBackupPointByUuid(m_backupWrapper.m_uuid); // 删除节点 - if (parse.deleteItem(m_backupWrapper.m_uuid) != ParseBackupList::SUCCESS) { + if (!m_backupWrapper.m_uuid.contains(QRegularExpression("^\\{.*-.*-.*-.*-.*\\}$")) || parse.deleteItem(m_backupWrapper.m_uuid) != ParseBackupList::SUCCESS) { qCritical() << QString("failed to delete %1 from backuplist.xml!").arg(m_backupWrapper.m_uuid); emit workResult(false); return false;