]> git.pld-linux.org Git - packages/gnupg2.git/blobdiff - gnupg-agent.sh
- updated to 2.2.3 (new long stable branch)
[packages/gnupg2.git] / 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.061259 seconds and 4 git commands to generate.