summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2018-05-29 17:57:35 +0200
committerJulian Andres Klode <julian.klode@canonical.com>2018-05-29 17:57:35 +0200
commit819426013c6ca6310bb469440702b6295dba4498 (patch)
tree27b94cd95bb90ff85679ed45deb80cb593608c50 /cmdline
parent484babb7d00f7550cbaa592b7cb0022d38217fad (diff)
apt-key: Pass all instead of gpg-agent to gpgconf --kill
We want to kill everything using our temporary directory. LP: #1773992
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-key.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdline/apt-key.in b/cmdline/apt-key.in
index 4c5c606d8..7ec1b034c 100644
--- a/cmdline/apt-key.in
+++ b/cmdline/apt-key.in
@@ -621,7 +621,7 @@ cleanup_gpg_home() {
cat >&2 "$GPGHOMEDIR/aptwarnings.log"
fi
if command_available 'gpgconf'; then
- GNUPGHOME="${GPGHOMEDIR}" gpgconf --kill gpg-agent >/dev/null 2>&1 || true
+ GNUPGHOME="${GPGHOMEDIR}" gpgconf --kill all >/dev/null 2>&1 || true
fi
rm -rf "$GPGHOMEDIR"
}