1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-31 11:41:32 +01:00
Werner Koch 4dfa951a0a
w32: Move socketdir to LOCAL_APPDATA
* common/homedir.c (is_gnupg_default_homedir): Use standard_homedir
instead of the constant which makes a difference on Windows.
(_gnupg_socketdir_internal) [W32]: Move the directory to LOCAL_APPDATA.
(gnupg_cachedir): Remove unsued function.

* common/sysutils.c (gnupg_rmdir): New.
* tools/gpgconf.c (main): s/rmdir/gnupg_rmdir/.
--

That is actually a more correct directory than APPDATA.  This fixes
a problem with installations where the APPDATA is non a network drive
and the resulting socket filename is truncated in our socket helper
function (because we use sockaddr also for our local socket
emulation on Windows).

LOCAL_APPDATA is expected to be on the local box and thus in the
majority of cases the resulting socket file name will be short enough.

GnuPG-bug-id: 5537
Signed-off-by: Werner Koch <wk@gnupg.org>
Backport-from-master: 0802cbb59b21e06e16b4fd8596934c5565e7f659
2021-08-17 10:53:26 +02:00
..
2015-10-28 10:20:17 +01:00
2021-06-02 19:11:42 +02:00
2021-08-17 10:53:26 +02:00
2015-11-17 12:50:22 +01:00
2017-04-28 10:06:33 +09:00
2017-02-21 13:11:46 -05:00
2019-04-16 13:27:44 +09:00
2021-05-20 14:52:08 +02:00
2016-03-02 14:27:30 +01:00
2017-04-28 10:06:33 +09:00
2017-02-21 13:11:46 -05:00
2020-11-09 11:53:33 +01:00
2021-04-29 12:25:46 +02:00
2021-04-29 10:38:29 +02:00
2021-08-17 10:53:26 +02:00
2021-01-11 18:40:45 +01:00
2017-02-21 13:11:46 -05:00

Common functionality used by all modules of GnuPG.