lp://qastaging/gdbm
- Get this branch:
- bzr branch lp://qastaging/gdbm
Branch merges
Branch information
Import details
This branch is an import of the HEAD branch of the Git repository at git://git.sv.gnu.org/gdbm.git.
Last successful import was .
Recent revisions
- 312. By Sergey Poznyakoff <email address hidden>
-
Restore backward compatibility with older databases
* src/gdbmopen.c (validate_header): Silently accept databases with next_block
pointing beyond end of file. - 311. By Sergey Poznyakoff <email address hidden>
-
Attempt recovery in case of invalid next_block header field
* src/gdbmopen.c (validate_header): Return GDBM_NEED_RECOVERY
if next_block is invalid.
(_gdbm_validate_ header) : New function.
(gdbm_fd_open): Set need_recovery depending on return from validate_header.
(gdbm_open): Bail out on invalid value of GDBM_OPENMASK bits.
* src/proto.h (_gdbm_validate_ header) : New proto.
* src/recover.c (check_db): Re-validate the header.
* src/gdbmtool.c (export_handler): Fix option processing. - 310. By Sergey Poznyakoff <email address hidden>
-
Various bugfixes.
* compat/dbmopen.c (ndbm_open_
dir_file0) : Ignore ENOENT.
* src/falloc.c (push_avail_block): Free temporary storage no matter
what return status.
* src/gdbm.h.in (GDBM_FILE_TRUNCATE_ ERROR): New error code.
* src/gdbmdump.c (_gdbm_dump_ascii): Initialize rc.
* src/gdbmerrno.c: Handle new error.code
* src/gdbmload.c (gdbm_load_bdb_dump) : Initialize rc
* src/gdbmopen.c (_gdbm_ftruncate): New function.
(gdbm_fd_open): Use _gdbm_ftruncate. Check its return.
* src/gdbmseq.c (gdbm_firstkey): Initialize dsize
* src/gdbmtool.c (command_generator) : Check if cmd is NULL.
(shouldn't happen, but anyways).
* src/mmap.c (_gdbm_mapped_ lseek): Check for vailidity of the 'whence'
parameter.
* src/systems.h (TRUNCATE): Remove macro.
* src/util.c (vgetyn): Remove unnecessary assignment. - 308. By Sergey Poznyakoff <email address hidden>
-
Fix directory entry validation.
Bug reported by Miroslav Lichvar and Marek Skalický
* src/bucket.c (gdbm_dir_
entry_valid_ p): Fix lower limit for
the allowed bucket address. Initial allocation of second block
for the directory can be eventually returned to the available
list when the directory is expanded during bucket splitting. - 307. By Sergey Poznyakoff <email address hidden>
-
Bugfix
* src/gdbmdump.c (_gdbm_dump_ascii): Clear the GDBM_ITEM_NOT_FOUND error.
* src/gdbmexp.c (gdbm_export_to_file) : Likewise.
* NEWS: Update. - 306. By Sergey Poznyakoff <email address hidden>
-
Bugfix
* src/gdbmopen.c (gdbm_avail_
table_valid_ p): Fix improper use of
the GDBM_DEBUG macro. - 305. By Sergey Poznyakoff <email address hidden>
-
Bugfix
* src/gdbmsync.c (gdbm_sync): Always return a meaningful value
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)