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.
Showing
- compat/dbmopen.c 1 addition, 1 deletioncompat/dbmopen.c
- src/falloc.c 32 additions, 22 deletionssrc/falloc.c
- src/gdbm.h.in 2 additions, 1 deletionsrc/gdbm.h.in
- src/gdbmdump.c 1 addition, 1 deletionsrc/gdbmdump.c
- src/gdbmerrno.c 4 additions, 2 deletionssrc/gdbmerrno.c
- src/gdbmload.c 1 addition, 0 deletionssrc/gdbmload.c
- src/gdbmopen.c 26 additions, 3 deletionssrc/gdbmopen.c
- src/gdbmseq.c 1 addition, 0 deletionssrc/gdbmseq.c
- src/gdbmtool.c 1 addition, 1 deletionsrc/gdbmtool.c
- src/mmap.c 4 additions, 0 deletionssrc/mmap.c
- src/systems.h 0 additions, 7 deletionssrc/systems.h
- src/util.c 3 additions, 2 deletionssrc/util.c
Loading
Please register or sign in to comment