Home GnuPG
Diffusion GnuPG dd5fd4a760b8

Replace all calls to access by gnupg_access

Description

Replace all calls to access by gnupg_access

* common/sysutils.c (gnupg_access): New.  Replace all calls to access
by this wrapper.
* common/homedir.c (w32_shgetfolderpath): Change to return UTF-8
directory name.
(standard_homedir): Adjust for change.
(w32_commondir, gnupg_cachedir): Ditto.

Also use SHGetFolderPathW instead of SHGetFolderPathA on Windows.

This is required to correctly handle non-ascii filenames on Windows.

(cherry picked from commit c94ee1386e0d5cdac51086c4d5b92de59c09c9b5)

Details

Provenance
wernerAuthored on Oct 20 2020, 10:43 AM
Parents
rG25bec16d0bdc: scd: Add a workaround for Yubikey.
Branches
Unknown
Tags
Unknown
Tasks
T5098: Gpg4win problems for Windows Users with some non-ASCII account names