diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-02-03 21:23:52 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-02-03 21:23:52 +0200 |
commit | 5fa5a79121fbb7754aa1eac50a10884965ec5f54 (patch) | |
tree | 1d5bb1b651c465685caec7bb17041f6e34a5e4bb /src | |
parent | 5846dfa01bd7c395b5d5330f4fd29aa4f1ad42b0 (diff) | |
download | mailfromd-5fa5a79121fbb7754aa1eac50a10884965ec5f54.tar.gz mailfromd-5fa5a79121fbb7754aa1eac50a10884965ec5f54.tar.bz2 |
Fix database privileges in dbfirst.
* src/builtin/db.bi (dbfirst): Get db mode from the properties,
use DEFAULT_DB_MODE if these are not defined.
Diffstat (limited to 'src')
-rw-r--r-- | src/builtin/db.bi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/builtin/db.bi b/src/builtin/db.bi index fc467d26..070ab945 100644 --- a/src/builtin/db.bi +++ b/src/builtin/db.bi @@ -476,7 +476,8 @@ MF_DEFUN(dbfirst, NUMBER, STRING dbname) struct mu_dbm_datum key; const struct db_prop *prop = db_prop_lookup(dbname); - rc = _open_dbm(&db, dbname, MU_STREAM_READ, 0, + rc = _open_dbm(&db, dbname, MU_STREAM_READ, + prop ? prop->mode : DEFAULT_DB_MODE, prop ? prop->hint : NULL); MF_ASSERT(rc == 0, mfe_dbfailure, |