From 477008b88ccf8334ad95e2b23ba67a2ee0635202 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Stoj=C5=A1in?= Date: Thu, 23 Nov 2023 22:38:18 +0100 Subject: [PATCH] Fix encrypt filtering --- src/dvsku_toolkit/systems/sys_crypt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dvsku_toolkit/systems/sys_crypt.cpp b/src/dvsku_toolkit/systems/sys_crypt.cpp index 8537f14..5179fc2 100644 --- a/src/dvsku_toolkit/systems/sys_crypt.cpp +++ b/src/dvsku_toolkit/systems/sys_crypt.cpp @@ -57,7 +57,7 @@ void sys_crypt::encrypt(const FOLDER_PATH& input, const FOLDER_PATH& output, int } // Only check when there is no filter - if (!filter && !should_be_encrypted(file) ) + if (filter != 0 && !should_be_encrypted(file)) continue; std::filesystem::path output_path = output.empty() ? "" : construct_output_path(file, input, output);