aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2021-05-25 11:39:59 +0000
committerWerner Koch <[email protected]>2021-06-10 10:44:30 +0000
commit845711d1420cc01289c15ba49deb03200a5cd102 (patch)
tree58549ae5ff274c2b857a161b31b672cd9660e3aa
parentscd: Fix serial number detection for Yubikey 5. (diff)
downloadgnupg-845711d1420cc01289c15ba49deb03200a5cd102.tar.gz
gnupg-845711d1420cc01289c15ba49deb03200a5cd102.zip
gpg: Partial fix for Unicode problem in output files.
* g10/openfile.c (overwrite_filep): Use gnupg_access. -- As said, this is just an obvious but partial fix. We need to review things for the output module. Signed-off-by: Werner Koch <[email protected]>
-rw-r--r--common/openpgp-fpr.c2
-rw-r--r--g10/openfile.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/common/openpgp-fpr.c b/common/openpgp-fpr.c
index de28c253b..7b110085f 100644
--- a/common/openpgp-fpr.c
+++ b/common/openpgp-fpr.c
@@ -265,7 +265,7 @@ compute_openpgp_fpr_ecc (int keyversion, unsigned long timestamp,
{
if (!kdf || !kdflen || !kdf[0])
{
- /* No KDF givem - use the default. */
+ /* No KDF given - use the default. */
kdflen = 4;
kdf = default_ecdh_params (curvebits);
}
diff --git a/g10/openfile.c b/g10/openfile.c
index d82858f5a..6f4e889e4 100644
--- a/g10/openfile.c
+++ b/g10/openfile.c
@@ -64,7 +64,7 @@ overwrite_filep( const char *fname )
if ( iobuf_is_pipe_filename (fname) )
return 1; /* Writing to stdout is always okay. */
- if ( access( fname, F_OK ) )
+ if ( gnupg_access( fname, F_OK ) )
return 1; /* Does not exist. */
if ( !compare_filenames (fname, NAME_OF_DEV_NULL) )