summaryrefslogtreecommitdiffstats
path: root/g10/migrate.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/migrate.c')
-rw-r--r--g10/migrate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/migrate.c b/g10/migrate.c
index 9045ae66e..38fb7bd68 100644
--- a/g10/migrate.c
+++ b/g10/migrate.c
@@ -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