mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +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>
This commit is contained in:
parent
c94ee1386e
commit
390497ea11
23 changed files with 220 additions and 216 deletions
|
@ -362,13 +362,13 @@ maybe_create_keyring_or_box (char *filename, int is_box, int force_create)
|
|||
that the detection magic will work the next time it is used. */
|
||||
if (is_box)
|
||||
{
|
||||
FILE *fp = fopen (filename, "wb");
|
||||
estream_t fp = es_fopen (filename, "wb");
|
||||
if (!fp)
|
||||
rc = gpg_error_from_syserror ();
|
||||
else
|
||||
{
|
||||
rc = _keybox_write_header_blob (fp, NULL, 1);
|
||||
fclose (fp);
|
||||
rc = _keybox_write_header_blob (fp, 1);
|
||||
es_fclose (fp);
|
||||
}
|
||||
if (rc)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue