Fix locking of Berkeley databases.
* include/mailutils/locker.h (mu_locker_lock_mode): New proto. * libmailutils/base/locker.c (_mu_locker_lock): Rename to mu_locker_lock_mode. All callers updated. * libmu_dbm/berkeley.c (bdb_file) <locker>: New member. (do_bdb_open): New function. Lock the database file before opening it. Drop support for version 2. (_bdb_open): Rewrite as a wrapper over do_bdb_open. * mu/dbm.c (dbm_doc): Document the "dump" subcommand. * NEWS: Version 2.99.96 * configure.ac: Likewise.
Showing
6 changed files
with
73 additions
and
32 deletions
-
Please register or sign in to post a comment