summaryrefslogtreecommitdiffstats
path: root/tools/symcryptrun.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2016-06-07 13:48:46 +0200
committerWerner Koch <wk@gnupg.org>2016-06-07 13:48:46 +0200
commit36550dde998fa1d497098050ca2d4e1a952ed6b6 (patch)
tree852698c73f3d10736b2a7f291992fefbbed9ae32 /tools/symcryptrun.c
parentcommon: Remove homedir arg from start_new_{dirmngr,gpg_agent}. (diff)
downloadgnupg2-36550dde998fa1d497098050ca2d4e1a952ed6b6.tar.xz
gnupg2-36550dde998fa1d497098050ca2d4e1a952ed6b6.zip
common: New function gnupg_socketdir.
* common/homedir.c (gnupg_socketdir): New. * agent/gpg-agent.c (create_socket_name): Use new function instead of gnupg_homedir. (check_own_socket): Ditto. (check_for_running_agent): Ditto. * agent/preset-passphrase.c (main): Ditto. * common/asshelp.c (start_new_gpg_agent): Ditto. * scd/scdaemon.c (create_socket_name): Ditto. * tools/gpgconf.c (main): Ditto. * tools/symcryptrun.c (main): Ditto. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'tools/symcryptrun.c')
-rw-r--r--tools/symcryptrun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/symcryptrun.c b/tools/symcryptrun.c
index 49c17c511..98813d5af 100644
--- a/tools/symcryptrun.c
+++ b/tools/symcryptrun.c
@@ -1008,7 +1008,7 @@ main (int argc, char **argv)
/* Tell simple-pwquery about the the standard socket name. */
{
- char *tmp = make_filename (gnupg_homedir (), GPG_AGENT_SOCK_NAME, NULL);
+ char *tmp = make_filename (gnupg_socketgdir (), GPG_AGENT_SOCK_NAME, NULL);
simple_pw_set_socket (tmp);
xfree (tmp);
}