From: Zbigniew Jędrzejewski-Szmek Date: Fri, 10 Apr 2026 16:26:58 +0000 (+0200) Subject: importctl: fix -N to actually clear keep-download flag X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee96f934c6efccd4a2a3fe1073f4da961fe4eb25;p=thirdparty%2Fsystemd.git 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(). --- diff --git a/src/import/importctl.c b/src/import/importctl.c index 2993073cc5c..cb6f61e8936 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;