notmuch_database_index_file with relative paths.

Subject: notmuch_database_index_file with relative paths.

Date: Fri, 17 Jul 2020 08:10:08 -0300

To: notmuch@notmuchmail.org

Cc:

From: David Bremner


This is a sanity check on a bug I stumbled upon while writing unit tests
for error handling in the library.

The attached test script (meant to be run from within the test subdir of
a built source tree) demonstrates trying (and failing) to index a
relative path.

Am I missing something here, or does _notmuch_message_file_open_ctx (or
something that calls it) need to check for absolute paths and prepend
the mail root if not?

I'm just a bit surprised that no-one hit this before.

_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: