This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=af70f584a161df13489b94ad06c38df939be6678

commit af70f584a161df13489b94ad06c38df939be6678
Author: Guillem Jover <[email protected]>
AuthorDate: Mon Jan 27 05:18:53 2025 +0100

    Dpkg::OpenPGP::Backend::GnuPG: Sign file with fixed up newline
    
    We made the workaround required by GnuPG, specific to this module so
    that it would not affect others, but did not modify the code to use
    the fixed up file instead of the input one.
    
    Fixes: commit 0274e3d358022ddd270c6c40a048a27d8f6b4eb8
---
 scripts/Dpkg/OpenPGP/Backend/GnuPG.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/Dpkg/OpenPGP/Backend/GnuPG.pm 
b/scripts/Dpkg/OpenPGP/Backend/GnuPG.pm
index 2daa8f183..5f805af93 100644
--- a/scripts/Dpkg/OpenPGP/Backend/GnuPG.pm
+++ b/scripts/Dpkg/OpenPGP/Backend/GnuPG.pm
@@ -226,7 +226,7 @@ sub inline_sign {
     }
     push @exec, '--output', $inlinesigned;
 
-    my $rc = $self->_gpg_exec(@exec, '--clearsign', $data);
+    my $rc = $self->_gpg_exec(@exec, '--clearsign', $signfile);
     return OPENPGP_CMD_CANNOT_SIGN if $rc;
     return OPENPGP_OK;
 }

-- 
Dpkg.Org's dpkg

Reply via email to