aboutsummaryrefslogtreecommitdiff
path: root/src/gdbmtool.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2018-05-25 14:17:11 +0300
committerSergey Poznyakoff <gray@gnu.org>2018-05-25 15:00:01 +0300
commit655cd193549e20ea8a8e77125adec7c5909c067e (patch)
treed59f997331bfcec8c0c17afb7bc8438215f09102 /src/gdbmtool.c
parent8d2f483b28f8418703982658b3e7dda7a96ad335 (diff)
downloadgdbm-655cd193549e20ea8a8e77125adec7c5909c067e.tar.gz
gdbm-655cd193549e20ea8a8e77125adec7c5909c067e.tar.bz2
More database consistency checks
* NEWS: Update. * THANKS: Update. * src/bucket.c (_gdbm_get_bucket): Check if directory entry is valid. Don't cache invalid buckets. * src/gdbm.h.in (GDBM_BAD_DIR_ENTRY): New error code. * src/gdbmerrno.c: Likewise. * src/gdbmopen.c (validate_header): Compute expected number of bucket elements based on the bucket size, not on the block size. (_gdbm_init_cache_entry): New function. * src/proto.h (_gdbm_init_cache_entry): New proto. * src/recover.c (gdbm_recover): Clear error state after return from check_db indicating failure.
Diffstat (limited to 'src/gdbmtool.c')
-rw-r--r--src/gdbmtool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gdbmtool.c b/src/gdbmtool.c
index b3055a6..06cd593 100644
--- a/src/gdbmtool.c
+++ b/src/gdbmtool.c
@@ -538,7 +538,7 @@ reorganize_handler (struct handler_param *param GDBM_ARG_UNUSED)
if (gdbm_reorganize (gdbm_file))
terror ("%s", _("Reorganization failed."));
else
- fprintf (param->fp, _("Reorganization succeeded."));
+ fprintf (param->fp, "%s\n", _("Reorganization succeeded."));
}
static void

Return to:

Send suggestions and report system problems to the System administrator.