1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

agent: Allow trustlist on Windows in Unicode homedirs.

* agent/trustlist.c (agent_marktrusted): Use gnupg_access.
This commit is contained in:
Werner Koch 2022-11-10 14:55:22 +01:00
parent c1f5fcff42
commit 6ba5b6b854
No known key found for this signature in database
GPG key ID: E3FDFF218E45B72B
2 changed files with 32 additions and 1 deletions

View file

@ -646,7 +646,7 @@ agent_marktrusted (ctrl_t ctrl, const char *name, const char *fpr, int flag)
if (!fname)
return gpg_error_from_syserror ();
if ((ec = access (fname, W_OK)) && ec != GPG_ERR_ENOENT)
if ((ec = gnupg_access (fname, W_OK)) && ec != GPG_ERR_ENOENT)
{
xfree (fname);
return gpg_error (GPG_ERR_EPERM);