]> git.cworth.org Git - notmuch/commit
lib: convert relative filenames to absolute in n_d_index_file
authorDavid Bremner <david@tethera.net>
Sun, 19 Jul 2020 00:11:28 +0000 (21:11 -0300)
committerDavid Bremner <david@tethera.net>
Wed, 22 Jul 2020 22:52:55 +0000 (19:52 -0300)
commitc477d7ce311335fda16a15e624ca3931d79144cf
treec78db52fb1be1b43442797abe9d95aa9792a21ea
parentbe3f4aec3f9006d066fe092e7fe0810c5a0f86e0
lib: convert relative filenames to absolute in n_d_index_file

The API docs promise to handle relative filenames, but the code did
not do it.

Also check for files outside the mail root, as implied by the API
description.

This fixes the bug reported at

     id:87sgdqo0rz.fsf@tethera.net
lib/message-file.c
test/T562-lib-database.sh