aboutsummaryrefslogtreecommitdiffstats
path: root/common/sysutils.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2021-02-10 07:32:57 +0000
committerWerner Koch <[email protected]>2021-02-10 07:32:57 +0000
commit2b75b256054427119a284792540243c3471267d4 (patch)
tree2ee874538b232116982a01c83d31503c8308dfa6 /common/sysutils.c
parentbuild: Make make distcheck work again. (diff)
downloadgnupg-2b75b256054427119a284792540243c3471267d4.tar.gz
gnupg-2b75b256054427119a284792540243c3471267d4.zip
Require GpgRT version 1.41.
* configure.ac (NEED_GPG_ERROR_VERSION): Rename to NEED_GPGRT_VERSION and set to 1.41. * common/sysutils.c (gnupg_access): Remove code for older gpgrt versions. * kbx/backend-sqlite.c: Ditto. * sm/gpgsm.c (main): Ditto. -- We already have a requirement for a newer Libgcrypt and thus we can also require a more recent libgpgrt (aka libgpg-error) which was released before Libgcrypt.
Diffstat (limited to 'common/sysutils.c')
-rw-r--r--common/sysutils.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/common/sysutils.c b/common/sysutils.c
index 50713a5f0..8b2d70180 100644
--- a/common/sysutils.c
+++ b/common/sysutils.c
@@ -1233,26 +1233,7 @@ gnupg_getcwd (void)
gpg_err_code_t
gnupg_access (const char *name, int mode)
{
-#if GPGRT_VERSION_NUMBER < 0x012800 /* 1.40 */
-# ifdef HAVE_W32_SYSTEM
- wchar_t *wname;
- gpg_err_code_t ec;
-
- wname = utf8_to_wchar (name);
- if (!wname)
- ec = gpg_err_code_from_syserror ();
- else
- {
- ec = _waccess (wname, mode)? gpg_err_code_from_syserror () : 0;
- xfree (wname);
- }
- return ec;
-# else
- return access (name, mode)? gpg_err_code_from_syserror () : 0;
-# endif
-#else /* gpgrt 1.40 or newer. */
return gpgrt_access (name, mode);
-#endif
}