1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

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.
This commit is contained in:
Werner Koch 2021-02-10 08:32:57 +01:00
parent f9e4dae08d
commit 2b75b25605
No known key found for this signature in database
GPG key ID: E3FDFF218E45B72B
4 changed files with 6 additions and 46 deletions

View file

@ -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
}