]> git.notmuchmail.org Git - notmuch/blob - test/corpus/cur/06:2,
test: add notmuch_search_files_sanitize and use it
[notmuch] / test / corpus / cur / 06:2,
1 From: "Carl Worth" <cworth@cworth.org>
2 To: notmuch@notmuchmail.org
3 Date: Tue, 17 Nov 2009 12:19:24 -0800
4 Subject: [notmuch] preliminary FreeBSD support
5 In-Reply-To: <cf0c4d610911171136h1713aa59w9cf9aa31f052ad0a@mail.gmail.com>
6 References: <cf0c4d610911171136h1713aa59w9cf9aa31f052ad0a@mail.gmail.com>
7 Message-ID: <87lji4lx9v.fsf@yoom.home.cworth.org>
8
9 On Tue, 17 Nov 2009 11:36:14 -0800, Alex Botero-Lowry <alex.boterolowry at gmail.com> wrote:
10 > I saw the announcement this morning, and was very excited, as I had been
11 > hoping sup would be turned into a library,
12 > since I like the concept more than the UI (I'd rather an emacs interface).
13
14 Hi Alex,
15
16 That's great! It's good to hear that there are like-minded people out
17 there. I hope that Notmuch will be useful for you.
18
19 > I did a preliminary compile which worked out fine, but
20 > sysconf(_SC_SC_GETPW_R_SIZE_MAX) returns -1 on
21 > FreeBSD, so notmuch_config_open segfaulted.
22
23 > Attached is a patch that supplies a default buffer size of 64 in cases where
24 > -1 is returned.
25
26 Thanks for the patch. As we discussed in IRC[*], we should probably
27 do the correct thing and check for ERANGE and loop as necessary (even if
28 sysconf returns a positive value). Example code here:
29
30 http://www.opengroup.org/austin/docs/austin_328.txt
31
32 -Carl
33
34 [*] #notmuch on irc.freenode.net for those who didn't just guess that
35 already, (and I'll add that to the website soon).
36