aboutsummaryrefslogtreecommitdiff
path: root/export
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-11-15 12:39:10 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2011-11-15 12:39:10 +0000
commitaf116bb7d7d5a53310e48d196ebe577b9a63f799 (patch)
tree904c07043b29bc3bcf9c2232276187c9fd1f16b4 /export
parent4931e4393ebff15289ad282f3d3dd0fba4999986 (diff)
downloadgdbm-af116bb7d7d5a53310e48d196ebe577b9a63f799.tar.gz
gdbm-af116bb7d7d5a53310e48d196ebe577b9a63f799.tar.bz2
Return a meaningful error code if failed to restore file's metadata.
* src/gdbm.h.in (GDBM_ERR_FILE_OWNER) (GDBM_ERR_FILE_MODE): New error codes. (_GDBM_MAX_ERRNO): Update. * src/gdbmerrno.c (gdbm_errlist): Add new error codes. * src/gdbmload.c (_set_gdbm_meta_info): Set gdbm_errno and return 1 in case of errors. (_gdbm_load_file): Propagate the return value from _set_gdbm_meta_info. * src/gdbm_load.c (main): Handle mild error conditions. * export/export.c (usage): Print the GDBM version the program is linked with. * doc/gdbm.texinfo: Document changes.
Diffstat (limited to 'export')
-rw-r--r--export/export.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/export/export.c b/export/export.c
index 2ef4e6c..39e05d1 100644
--- a/export/export.c
+++ b/export/export.c
@@ -32,6 +32,7 @@ usage (char *s)
printf ("Usage: %s database outfile\n", s);
printf (" or: %s [-hv]\n", s);
printf ("Convert GDBM database into a flat dump format.\n");
+ printf ("Linked with %s\n", gdbm_version);
printf ("\n");
printf ("Report bugs to <%s>.\n", PACKAGE_BUGREPORT);
}

Return to:

Send suggestions and report system problems to the System administrator.