aboutsummaryrefslogtreecommitdiffstats
path: root/g10/tdbio.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/tdbio.c')
-rw-r--r--g10/tdbio.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/g10/tdbio.c b/g10/tdbio.c
index 59bcc8530..50064cf59 100644
--- a/g10/tdbio.c
+++ b/g10/tdbio.c
@@ -1455,7 +1455,7 @@ migrate_from_v2 ()
int ottable_size, ottable_used;
byte oldbuf[40];
ulong recno;
- int count;
+ int rc, count;
ottable_size = 5;
ottable = m_alloc (ottable_size * sizeof *ottable);
@@ -1555,7 +1555,9 @@ migrate_from_v2 ()
}
revalidation_mark ();
- tdbio_sync ();
+ rc = tdbio_sync ();
+ if (rc)
+ log_fatal ("failed to sync `%s'\n", db_name);
log_info ("migrated %d version 2 ownertrusts\n", count);
m_free (ottable);
}