From: David Bremner <david@tethera.net>
To: notmuch@notmuchmail.org
Subject: Re: notmuch_database_index_file with relative paths.
Date: Sun, 19 Jul 2020 10:56:26 -0300 [thread overview]
Message-ID: <87r1t7mwvp.fsf@tethera.net> (raw)
In-Reply-To: <87sgdqo0rz.fsf@tethera.net>
David Bremner <david@tethera.net> writes:
> 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.
There is a proposed fix at
id:20200719100539.917215-1-david@tethera.net
next prev parent reply other threads:[~2020-07-19 13:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-17 11:10 notmuch_database_index_file with relative paths David Bremner
2020-07-19 13:56 ` David Bremner [this message]
2020-07-25 11:22 ` David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r1t7mwvp.fsf@tethera.net \
--to=david@tethera.net \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).