libmu_dbm: Functions for DB creation take default safety flags in their last argument.
* configure.ac (check_dbm_impl): Fix improper usage of expr in BDB=* case. * include/mailutils/dbm.h (mu_dbm_create_from_url) (mu_dbm_create): Take default safety flags as the last argument. * libmailutils/base/filesafety.c (_check_linkwrdir): Check for both hard and symbolic links. Fix the latter check. * libmailutils/tests/fsaf.at: Add check for softlink in a writable dir. * libmu_dbm/create.c (mu_dbm_create): Take default file safety as the last argument. * libmu_dbm/dbm.c (mu_dbm_create_from_url): Likewise. * maidag/mailquota.c (dbm_retrieve_quota): Update call to mu_dbm_create. Impose MU_FILE_SAFETY_ALL by default. * mu/dbm.c (open_db_file): Update call to mu_dbm_create. No checks by default. * pop3d/apop.c (pop3d_apopuser): Update call to mu_dbm_create. Use apop_database_safety as the default checks. * pop3d/bulletin.c (read_bulletin_db,write_bulletin_db): Update calls to mu_dbm_create. Use DEFAULT_GROUP_DB_SAFETY as default. * pop3d/logindelay.c (open_stat_db): Update call to mu_dbm_create. Use DEFAULT_GROUP_DB_SAFETY as default. * pop3d/pop3d.c (apop_database_safety): Initialize to MU_FILE_SAFETY_ALL. (apop_database_safety_set): Remove. * pop3d/pop3d.h (apop_database_safety_set): Remove. * pop3d/popauth.c (open_db_file): Update call to mu_dbm_create. Use safety_flags by default.
Showing
14 changed files
with
41 additions
and
39 deletions
-
Please register or sign in to post a comment