summaryrefslogtreecommitdiffstats
path: root/common/homedir.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2007-11-27 09:01:19 +0100
committerWerner Koch <wk@gnupg.org>2007-11-27 09:01:19 +0100
commit598a3d0ab4a401f929c03d08cea5c272bf49abda (patch)
tree3c1e527c7fc15b8da3599d81832e195a0fbde3c2 /common/homedir.c
parentAdd option --data to GETAUDITLOG command. (diff)
downloadgnupg2-598a3d0ab4a401f929c03d08cea5c272bf49abda.tar.xz
gnupg2-598a3d0ab4a401f929c03d08cea5c272bf49abda.zip
[W32] Changed default socket for dirmngr.
[W32] Add some code for event notifications between scdaemon and gpg-agent.
Diffstat (limited to 'common/homedir.c')
-rw-r--r--common/homedir.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/common/homedir.c b/common/homedir.c
index b85f760a0..6f1b49c21 100644
--- a/common/homedir.c
+++ b/common/homedir.c
@@ -299,8 +299,13 @@ dirmngr_socket_name (void)
if (!name)
{
- const char *s1, *s2;
- s1 = w32_rootdir ();
+ char s1[MAX_PATH];
+ const char *s2;
+
+ /* We need something akin CSIDL_COMMON_PROGRAMS, but local
+ (non-roaming). */
+ if (w32_shgetfolderpath (NULL, CSIDL_WINDOWS, NULL, 0, s1) < 0)
+ strcpy (s1, "C:\\WINDOWS");
s2 = DIRSEP_S "S.dirmngr";
name = xmalloc (strlen (s1) + strlen (s2) + 1);
strcpy (stpcpy (name, s1), s2);