[packages/gnupg2] Check if /proc/pid/exe is symlink to /usr/bin/gpg-agent. That way we are 100% sure that this is gpg-
Arkadiusz Miśkiewicz
arekm at maven.pl
Tue Aug 2 14:34:30 CEST 2016
On Tuesday 02 of August 2016, Elan Ruusamäe wrote:
>
> # rm /usr/bin/gpg-agent
> rm: remove regular file '/usr/bin/gpg-agent'? y
>
> # l /proc/505/exe
> lrwxrwxrwx 1 glen glen 0 Jun 6 20:17 /proc/505/exe ->
> /usr/bin/gpg-agent (deleted)
>
> #
Doh and resolvesymlink will return empty string in such case :-/
--
Arkadiusz Miśkiewicz, arekm / ( maven.pl | pld-linux.org )
More information about the pld-devel-en
mailing list