diff options
author | Julian Andres Klode <jak@debian.org> | 2016-08-23 21:01:06 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2016-08-26 22:17:54 +0200 |
commit | dd7758b9245275a31fde70218db9a531c5859c26 (patch) | |
tree | 9f9e9214af456369b85abb7c1f85e7552b519db7 /cmdline | |
parent | 0fb16c3e678044d6d06ba8a6199b1e96487ee0d8 (diff) |
apt-key: Only use readlink -f for existing components
On FreeBSD, readlink -f requires the last component
to exist.
Diffstat (limited to 'cmdline')
-rw-r--r-- | cmdline/apt-key.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdline/apt-key.in b/cmdline/apt-key.in index 81314c7f5..21df37ffd 100644 --- a/cmdline/apt-key.in +++ b/cmdline/apt-key.in @@ -306,7 +306,7 @@ merge_all_trusted_keyrings_into_pubring() { # does the same as: # foreach_keyring_do 'import_keys_from_keyring' "${GPGHOMEDIR}/pubring.gpg" # but without using gpg, just cat and find - local PUBRING="$(readlink -f "${GPGHOMEDIR}/pubring.gpg")" + local PUBRING="$(readlink -f "${GPGHOMEDIR}")/pubring.gpg" # if a --keyring was given, just use this one if [ -n "$FORCED_KEYRING" ]; then if [ -s "$FORCED_KEYRING" ]; then |