mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Replace most of the remaining stdio calls by estream calls.
--
We need to use es_fopen on Windows to cope with non-ascii file names.
This is quite a large but fortunately straightforward change. At a
very few places we keep using stdio (for example due to the use of
popen).
GnuPG-bug-id: 5098
Signed-off-by: Werner Koch <wk@gnupg.org>
Backported-from-master: 390497ea11
This commit is contained in:
parent
dd5fd4a760
commit
5c6e9b44cc
20 changed files with 208 additions and 197 deletions
|
@ -99,8 +99,8 @@ migrate_secring (ctrl_t ctrl)
|
|||
log_info ("porting secret keys from '%s' to gpg-agent\n", secring);
|
||||
if (!import_old_secring (ctrl, secring))
|
||||
{
|
||||
FILE *fp = fopen (flagfile, "w");
|
||||
if (!fp || fclose (fp))
|
||||
estream_t fp = es_fopen (flagfile, "w");
|
||||
if (!fp || es_fclose (fp))
|
||||
log_error ("error creating flag file '%s': %s\n",
|
||||
flagfile, gpg_strerror (gpg_error_from_syserror ()));
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue