]> git.pld-linux.org Git - packages/gnupg2.git/commitdiff
- use readlink from coreutils instead of our own resolvesymlink; handle "gpg-agent...
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 2 Aug 2016 13:15:24 +0000 (15:15 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 2 Aug 2016 13:15:24 +0000 (15:15 +0200)
gnupg-agent.sh

index 100ad8b0d5a202eccdaa1b5a190d52ba4ba0357d..72dda0c7602e0fa745b06fd0cee346eb0f6c9333 100644 (file)
@@ -14,7 +14,7 @@ fi
 if grep -q "^[[:blank:]]*use-agent" ${CFG} 2>/dev/null; then
        if [ -f "${HOME}/.gnupg/GPG_AGENT_INFO" ] && \
                        pid="$(cut -d: -f2 $HOME/.gnupg/GPG_AGENT_INFO)" && \
-                       agent="$(resolvesymlink "/proc/$pid/exe")" && \
+                       agent="$(readlink -n "/proc/$pid/exe")" && agent=${agent%% *} && \
                        [ "$agent" = "/usr/bin/gpg-agent" -o "$agent" = "/usr/bin/seahorse-agent" ]; then
                export GPG_AGENT_INFO="$(cat ${HOME}/.gnupg/GPG_AGENT_INFO)"
        else
This page took 0.049669 seconds and 4 git commands to generate.