1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +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 976e9d6083
commit 80ccded042
No known key found for this signature in database
GPG key ID: E3FDFF218E45B72B
2 changed files with 14 additions and 9 deletions

View file

@ -648,7 +648,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);