summaryrefslogtreecommitdiffstats
path: root/common
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
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')
-rw-r--r--common/ChangeLog4
-rw-r--r--common/homedir.c9
2 files changed, 11 insertions, 2 deletions
diff --git a/common/ChangeLog b/common/ChangeLog
index 9db29d908..d398d2a77 100644
--- a/common/ChangeLog
+++ b/common/ChangeLog
@@ -1,3 +1,7 @@
+2007-11-27 Werner Koch <wk@g10code.com>
+
+ * homedir.c (dirmngr_socket_name): Use CSIDL_WINDOWS.
+
2007-11-15 Werner Koch <wk@g10code.com>
* asshelp.c (send_pinentry_environment): Add args XAUTHORITY and
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);