lp://qastaging/gdbm

Created by snd and last modified
Get this branch:
bzr branch lp://qastaging/gdbm

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
VCS Imports II
Project:
gdbm
Status:
Development

Import details

Import Status: Suspended

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 .

Import started on alnitak and finished taking 40 seconds — see the log
Import started on alnitak and finished taking 40 seconds — see the log
Import started on alnitak and finished taking 40 seconds — see the log
Import started on alnitak and finished taking 40 seconds — see the log

Recent revisions

313. By Sergey Poznyakoff <email address hidden>

Version 1.18.1

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.

309. By Sergey Poznyakoff <email address hidden>

Version 1.18

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

304. By Sergey Poznyakoff <email address hidden>

Version 1.17

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.

Subscribers