mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
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:
parent
c2f02797cd
commit
845711d142
@ -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);
|
||||
}
|
||||
|
@ -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) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user