]> git.pld-linux.org Git - packages/gnupg2.git/commitdiff
- gpg.conf parsing fixed - leading spaces are allowed in this configuration
authortwittner <twittner@pld-linux.org>
Sat, 4 Sep 2004 11:43:30 +0000 (11:43 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  file

Changed files:
    gnupg-agent.sh -> 1.4

gnupg-agent.sh

index e0d3916fee0f65afc32b207ee0ca62bba6d76f3a..bfe7e40d2eab0127cbe0824d5a7a3eec15388340 100644 (file)
@@ -11,7 +11,7 @@ if [ -r "${HOME}/.gnupg/gpg-agent.conf" ]; then
     grep -qE "^pinentry-program.*pinentry-(qt|gtk)" "${HOME}/.gnupg/gpg-agent.conf" && X11=yes
 fi
 
-if grep -q "^use-agent" ${CFG} 2>/dev/null; then
+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)" && [ -n "$pid" ] && kill -0 "$pid"  2>/dev/null; then
        export GPG_AGENT_INFO="$(cat ${HOME}/.gnupg/GPG_AGENT_INFO)"
     else
This page took 0.051483 seconds and 4 git commands to generate.