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 <wk@gnupg.org>
This commit is contained in:
Werner Koch 2021-05-25 13:39:59 +02:00
parent c2f02797cd
commit 845711d142
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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) )