[gnupg] gpgv --output FILE leaves FILE.part (regression in 2.5.21)

NIIBE Yutaka gniibe at fsij.org
Thu Nov 5 06:16:52 CET 2026


Hello,

Thank you for your report with repro.  I didn't notice until today
(sorry, I rarely use gpgv).

KOSHIKAWA Kenichi wrote:
>   ab2e64e4b490 gpg: Defer renaming at exit, so that it can remove
>                on failure.  (T7873)

Ah, indeed.

One liner could fix the issue:
==========================
diff --git a/g10/gpgv.c b/g10/gpgv.c
index 382720ef8..9790cae3b 100644
--- a/g10/gpgv.c
+++ b/g10/gpgv.c
@@ -322,6 +322,7 @@ g10_exit (int rc)
   else if (opt.assert_pubkey_algos && assert_pubkey_algo_false)
     rc = 1;
 
+  gnupg_commit_partial_file ();
   exit (rc);
 }
 
==========================

I created a ticket for this:

    https://static.dev.gnupg.org/T8540.html
-- 


More information about the Gnupg-devel mailing list