g10,sm: Use gnupg_access at two more places

--
This commit is contained in:
Werner Koch 2020-10-26 12:39:26 +01:00
parent 8264b10d33
commit cf4b8a27c3
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
2 changed files with 2 additions and 2 deletions

View File

@ -250,7 +250,7 @@ maybe_create_keyring_or_box (char *filename, int is_box, int force_create)
not happen though. */
save_slash = *last_slash_in_filename;
*last_slash_in_filename = 0;
if (access(filename, F_OK))
if (gnupg_access(filename, F_OK))
{
static int tried;

View File

@ -245,7 +245,7 @@ maybe_create_keybox (char *filename, int force, int *r_created)
not happen though. */
save_slash = *last_slash_in_filename;
*last_slash_in_filename = 0;
if (access(filename, F_OK))
if (gnupg_access(filename, F_OK))
{
static int tried;