Home GnuPG
Diffusion GnuPG caf00915532e

common: Fix connecting to the agent.

Description

common: Fix connecting to the agent.

* common/homedir.c (_gnupg_socketdir_internal): Fix error handling.

Prior to 26086b36 the non-existance of the socket directory was
considered an error if a non-default home directory is used. Since
26086b36 we now create the directory on demand, but the function still
returned the fallback path. This made the agent bind the socket in
the socket directory, and the client trying to connect to the socket
in the home directory.

Details

Provenance
justusAuthored on Mar 27 2017, 4:14 PM
Parents
rGc1e6302b347c: g10: Support specifying SERIALNO for --card-status.
Branches
Unknown
Tags
Unknown