]> git.notmuchmail.org Git - notmuch/commit
lib/config: canonicalize paths relative to $HOME.
authorDavid Bremner <david@tethera.net>
Fri, 7 May 2021 00:16:38 +0000 (21:16 -0300)
committerDavid Bremner <david@tethera.net>
Mon, 10 May 2021 14:08:18 +0000 (11:08 -0300)
commit31098c4ae40511ffda9788a6654adbf898063d7f
tree92eea5708107efcc366ed8abe12a3059a95ee4bd
parentef0b1266190141b108a338ba06348e335ec4957b
lib/config: canonicalize paths relative to $HOME.

Prior to 0.32, notmuch had the (undocumented) behaviour that it
expanded a relative value of database.path with respect to $HOME. In
0.32 this was special cased for database.path but broken for
database.mail_root, which causes problems for at least notmuch-new
when database.path is set to a relative path.

The change in T030-config.sh reflects a user visible, but hopefully
harmless behaviour change; the expanded form of the paths will now be
printed by notmuch config.
lib/config.cc
test/T030-config.sh
test/T050-new.sh