From ee96f934c6efccd4a2a3fe1073f4da961fe4eb25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 10 Apr 2026 18:26:58 +0200 Subject: [PATCH] importctl: fix -N to actually clear keep-download flag -N was clearing and re-setting the same bit in arg_import_flags_mask, which is a no-op. It should clear the bit in arg_import_flags instead, matching what --keep-download=no does via SET_FLAG(). --- src/import/importctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/import/importctl.c b/src/import/importctl.c index 2993073cc5..cb6f61e893 100644 --- a/src/import/importctl.c +++ b/src/import/importctl.c @@ -1273,7 +1273,7 @@ static int parse_argv(int argc, char *argv[]) { break; case 'N': - arg_import_flags_mask &= ~IMPORT_PULL_KEEP_DOWNLOAD; + arg_import_flags &= ~IMPORT_PULL_KEEP_DOWNLOAD; arg_import_flags_mask |= IMPORT_PULL_KEEP_DOWNLOAD; break;