- fix "syntax error in gpg-agent-startup.sh" (#206887)

This commit is contained in:
Rex Dieter 2006-09-18 12:47:36 +00:00
parent dfcc872db9
commit 430f4c6232
2 changed files with 5 additions and 2 deletions

View File

@ -16,7 +16,7 @@
Summary: Utility for secure communication and data storage
Name: gnupg2
Version: 1.9.22
Release: 3%{?dist}
Release: 4%{?dist}
License: GPL
Group: Applications/System
@ -170,6 +170,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Mon Sep 18 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.22-4
- fix "syntax error in gpg-agent-startup.sh" (#206887)
* Thu Sep 07 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.22-3
- fc6 respin (for libksba-1.0)

View File

@ -7,7 +7,7 @@ if [ -z "${GPG_AGENT_INFO}" -a -x ${GPG_AGENT} ] ; then
# check validity of GPG_SOCKET (in case of session crash)
if [ -f ${HOME}/.gpg-agent-info ]; then
GPG_SOCKET=$(cat .gpg-agent-info |cut -f1 -d:)
if ! test -S ${GPG_SOCKET} -o ! test -O ${GPG_SOCKET} ; then
if ! test -S ${GPG_SOCKET} -o ! -O ${GPG_SOCKET} ; then
rm -f ${HOME}/.gpg-agent-info 2>&1 >/dev/null
fi
fi