summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2024-11-23 17:45:11 +0100
committerJulian Andres Klode <jak@debian.org>2024-11-28 10:17:21 +0100
commit0e69c1fa5b8a4a1237933fa47113ea839a66f8a0 (patch)
treed1ae180b2ef9f696d49fdc2ee3a2fb787fce6bb9 /methods
parentc9530c4773a9d0b50c589098a03a47bcdfc75ea0 (diff)
Do not implode key file name vector for calling gpgv
Converting it to a comma-separated string and back loses precision.
Diffstat (limited to 'methods')
-rw-r--r--methods/gpgv.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/methods/gpgv.cc b/methods/gpgv.cc
index 4a0866555..9f2ccb174 100644
--- a/methods/gpgv.cc
+++ b/methods/gpgv.cc
@@ -201,9 +201,8 @@ string GPGVMethod::VerifyGetSigners(const char *file, const char *outfile,
else if (pid == 0)
{
std::ostringstream keys;
- implodeVector(keyFiles, keys, ",");
setenv("APT_KEY_NO_LEGACY_KEYRING", "1", true);
- ExecGPGV(outfile, file, 3, fd, keys.str());
+ ExecGPGV(outfile, file, 3, fd, keyFiles);
}
close(fd[1]);