aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2020-10-26 11:36:38 +0000
committerWerner Koch <[email protected]>2020-10-26 11:36:38 +0000
commitfc0fc4c2d333740d19deb33a4ce7c7478db02085 (patch)
treec329d1590e72e38f75a491be787ed94267586a32
parentcommon: Fix gnupg_access for older libgpg-error. (diff)
downloadgnupg-fc0fc4c2d333740d19deb33a4ce7c7478db02085.tar.gz
gnupg-fc0fc4c2d333740d19deb33a4ce7c7478db02085.zip
g10,sm: Use gnupg_access at two more places.
--
-rw-r--r--g10/keydb.c2
-rw-r--r--sm/keydb.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/g10/keydb.c b/g10/keydb.c
index 7b411dbfe..9798b5cde 100644
--- a/g10/keydb.c
+++ b/g10/keydb.c
@@ -332,7 +332,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;
diff --git a/sm/keydb.c b/sm/keydb.c
index 4d3f40990..976e1674c 100644
--- a/sm/keydb.c
+++ b/sm/keydb.c
@@ -152,7 +152,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;