diff options
author | Colin Watson <cjwatson@debian.org> | 2012-06-18 04:27:15 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2012-06-18 04:27:15 +0100 |
commit | da9187092f6f3783b67bc862642d82f69d79ee78 (patch) | |
tree | cf44ce4e6ca65f658ba74e6f85558ba696ee92db /gnulib/m4/visibility.m4 | |
parent | 1cd958ff1968da207bedfff4dc518564b7e05e6f (diff) |
Avoid fatal errors when opening a 64-bit GDBM database from a 32-bit
process (Ubuntu bug #1001189).
* libdb/db_gdbm.c (trap_error): New function.
(man_gdbm_open_wrapper): Rearrange interface to call gdbm_open
rather than taking its return value as an argument. Fetch a test
value from the database after opening it, inside a setjmp/longjmp
guard to prevent GDBM from exiting.
* include/mydbm.h (man_gdbm_open_wrapper): Update prototype.
(MYDBM_CTRWOPEN, MYDBM_CRWOPEN, MYDBM_RWOPEN, MYDBM_RDOPEN):
Update man_gdbm_open_wrapper calls, since it now calls gdbm_open
itself.
* NEWS: Document this.
Diffstat (limited to 'gnulib/m4/visibility.m4')
0 files changed, 0 insertions, 0 deletions