Opened 6 months ago

Closed 5 months ago

#5515 closed enhancement (fixed)

gdbm-1.24

Reported by: Bruce Dubbs Owned by: lfs-book
Priority: normal Milestone: 12.2
Component: Book Version: git
Severity: normal Keywords:
Cc:

Description

New minor version.

Change History (2)

comment:1 by Xi Ruoyao, 6 months ago

Version 1.24, 2024-07-02

  • New gdbm_load option: --update

The --update (-U) option instructs gdbm_load to update an existing database.

  • Fix semantics of gdbm_load -r

The --replace (-r) is valid only when used together with --update.

  • Use getline in gdbmtool shell.
  • New function: gdbm_load_from_file_ext

In contrast to gdbm_load and gdbm_load_from_file, which derive the value of the flag parameter for gdbm_open from the value of their "replace" argument, this function allows the caller to specify it explicitly. The prototype is:

  int gdbm_load_from_file_ext (GDBM_FILE *pdbf, FILE *fp,
			       int flags, int replace,
			       int meta_mask,
			       unsigned long *line);
  • Bugfixes
    • Fix binary dump format for key and/or data of zero size.
    • Fix location tracking and recover command in gdbtool.
    • Fix possible buffer underflow in gdbmload.
    • Ensure any padding bytes in avail_elem structure are filled with 0.
    • Improve the documentation.
Last edited 5 months ago by Bruce Dubbs (previous) (diff)

comment:2 by Bruce Dubbs, 5 months ago

Resolution: fixed
Status: newclosed

Fixed at commit f105449724.

Note: See TracTickets for help on using tickets.