From 4e1a638fca014b5c0dcc7cbfb7664703c4332224 Mon Sep 17 00:00:00 2001 From: Albertony Date: Mon, 20 Mar 2017 13:35:30 +0100 Subject: [PATCH] Fixed issue #2066: The command create-report appends zip even if output-file name already ends with .zip --- Duplicati/Library/Main/Operation/CreateBugReportHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Duplicati/Library/Main/Operation/CreateBugReportHandler.cs b/Duplicati/Library/Main/Operation/CreateBugReportHandler.cs index b17f9db3f..b131bbae0 100644 --- a/Duplicati/Library/Main/Operation/CreateBugReportHandler.cs +++ b/Duplicati/Library/Main/Operation/CreateBugReportHandler.cs @@ -38,8 +38,8 @@ namespace Duplicati.Library.Main.Operation { var ext = System.IO.Path.GetExtension(m_targetpath); var module = m_options.CompressionModule; - - if (ext != module) + + if (ext == "" || string.Compare(ext, 1, module, 0, module.Length, StringComparison.OrdinalIgnoreCase) != 0) m_targetpath = m_targetpath + "." + module; if (System.IO.File.Exists(m_targetpath))