Diffusion GnuPG caf00915532e

common: Fix connecting to the agent.

Authored by justus on Mar 27 2017, 4:14 PM.

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

Committed
justusMar 27 2017, 4:21 PM
Parents
rGc1e6302b347c: g10: Support specifying SERIALNO for --card-status.
Branches
Unknown
Tags
Unknown
Justus Winter <justus@g10code.com> committed rGcaf00915532e: common: Fix connecting to the agent. (authored by Justus Winter <justus@g10code.com>).Mar 27 2017, 4:21 PM