From cb46cac6372579e0c58e2b0d73ffbdf692d08ee6 Mon Sep 17 00:00:00 2001 From: Martchus Date: Thu, 17 Aug 2017 18:46:15 +0200 Subject: [PATCH] backup helper: Don't remove previous backup The backup helper is no longer supposed to override previous backups. --- backuphelper.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/backuphelper.cpp b/backuphelper.cpp index 5ff8519..5e18e24 100644 --- a/backuphelper.cpp +++ b/backuphelper.cpp @@ -182,8 +182,6 @@ void createBackupFile(const std::string &originalPath, std::string &backupPath, } // else: the backup file already exists -> find another file name } - // remove backup file if already exists - std::remove(backupPath.c_str()); // ensure original file is closed if(originalStream.is_open()) { originalStream.close();