aboutsummaryrefslogtreecommitdiffstats
path: root/kbx/keybox-init.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2020-10-20 09:52:16 +0000
committerWerner Koch <[email protected]>2020-10-20 10:15:56 +0000
commit390497ea115e1aca93feec297a5bd6ae7b1ba6dd (patch)
tree675448ff809e3f333bba4918e4787eacda7f8190 /kbx/keybox-init.c
parentReplace all calls to access by gnupg_access (diff)
downloadgnupg-390497ea115e1aca93feec297a5bd6ae7b1ba6dd.tar.gz
gnupg-390497ea115e1aca93feec297a5bd6ae7b1ba6dd.zip
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 <[email protected]>
Diffstat (limited to 'kbx/keybox-init.c')
-rw-r--r--kbx/keybox-init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kbx/keybox-init.c b/kbx/keybox-init.c
index 248a0a543..48af5c7a1 100644
--- a/kbx/keybox-init.c
+++ b/kbx/keybox-init.c
@@ -180,7 +180,7 @@ keybox_release (KEYBOX_HANDLE hd)
_keybox_release_blob (hd->saved_found.blob);
if (hd->fp)
{
- fclose (hd->fp);
+ es_fclose (hd->fp);
hd->fp = NULL;
}
xfree (hd->word_match.name);
@@ -253,11 +253,11 @@ _keybox_close_file (KEYBOX_HANDLE hd)
{
if (roverhd->fp)
{
- fclose (roverhd->fp);
+ es_fclose (roverhd->fp);
roverhd->fp = NULL;
}
}
- assert (!hd->fp);
+ log_assert (!hd->fp);
}