FreeBSD Bugzilla – Bug 166803
[patch] sysutils/xfce4-utils: fix running/killing of gpg-agent
Last modified: 2012-05-09 20:48:00 UTC
Xfce xinitrc script runs gpg-agent when it is installed (security/gnupg),
but when the user uses csh as shell gpg-agent returns csh commands which
of course cannot be executed from an sh script like xinitrc.
The attached patch passes --sh to gpg-agent so it always returns sh
Fix: Patch to put in sysutils/xfce4-utils/files.
How-To-Repeat: Install security/gnupg and run startxfce4. You'll see errors about
setenv at startup and about kill at shutdown.
Over to maintainer (via the GNATS Auto Assign Tool)
I cannot find entries containing gpg, gnupg, or setenv in
/var/log/messages* (or maybe they got expunged). According to
gpg-agent(1), --sh forces the use of sh to format the output instead of
using the value of $SHELL, is this what you intend?
On 07-05-2012 22:49, Rene Ladan wrote:
> I cannot find entries containing gpg, gnupg, or setenv in
> /var/log/messages* (or maybe they got expunged). According to
> gpg-agent(1), --sh forces the use of sh to format the output instead of
> using the value of $SHELL, is this what you intend?
Yes, it's similar to the --sh-syntax flag of dbus-launch and the -s flag
of ssh-agent, both of which the script already uses.
FYI, I reported the problem upstream and they said 4.10 should be ok
because it no longer uses a shell script: