]> git.notmuchmail.org Git - notmuch/commit
lib/config: don't overwrite database.path if the caller passed it
authorDavid Bremner <david@tethera.net>
Thu, 28 Oct 2021 01:34:19 +0000 (22:34 -0300)
committerDavid Bremner <david@tethera.net>
Sat, 4 Dec 2021 00:52:11 +0000 (20:52 -0400)
commit59aac9cef37a9937bdf2265078d063673111f80b
treee375644b87d0c21d4f3afbefbcfab7b849c7572c
parentd467444085d96229172ce29ef8654c3c459b6ce2
lib/config: don't overwrite database.path if the caller passed it

If the user passed a path, and we opened it, then we consider that
definitive definition of "database.path". This makes libnotmuch
respond more gracefully to certain erroneous combinations of
NOTMUCH_CONFIG settings and config file contents.
lib/config.cc
test/T590-libconfig.sh