aboutsummaryrefslogtreecommitdiffstats
path: root/common/sysutils.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2021-08-11 09:50:41 +0000
committerWerner Koch <[email protected]>2021-08-11 09:50:41 +0000
commit0802cbb59b21e06e16b4fd8596934c5565e7f659 (patch)
tree0324ec2002a7c46a182aaa2d94c0bf4d3023e9a5 /common/sysutils.h
parentgpgconf,w32: Print more registry diagnostics with --list-dirs. (diff)
downloadgnupg-0802cbb59b21e06e16b4fd8596934c5565e7f659.tar.gz
gnupg-0802cbb59b21e06e16b4fd8596934c5565e7f659.zip
w32: Move socketdir to LCOAL_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 <[email protected]>
Diffstat (limited to 'common/sysutils.h')
-rw-r--r--common/sysutils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/sysutils.h b/common/sysutils.h
index 9f2920bb3..7063da067 100644
--- a/common/sysutils.h
+++ b/common/sysutils.h
@@ -84,6 +84,7 @@ gpg_error_t gnupg_rename_file (const char *oldname, const char *newname,
int *block_signals);
int gnupg_mkdir (const char *name, const char *modestr);
int gnupg_chdir (const char *name);
+int gnupg_rmdir (const char *name);
int gnupg_chmod (const char *name, const char *modestr);
char *gnupg_mkdtemp (char *template);
int gnupg_setenv (const char *name, const char *value, int overwrite);