* [CLI] bug in notmuch setup
@ 2013-05-05 21:22 Patrick Totzke
2013-05-06 4:46 ` Jani Nikula
0 siblings, 1 reply; 2+ messages in thread
From: Patrick Totzke @ 2013-05-05 21:22 UTC (permalink / raw)
To: notmuch
[-- Attachment #1: Type: text/plain, Size: 1909 bytes --]
Hi all,
As mentioned on IRC earlier, current master seems to have an issue with `notmuch setup`,
which fails to write ~/.notmuch-config if not already present.
Here are excerpts from the discussion from #notmuch:
--------------------------------------%<---------------------------------------
19:08:29 <pazz> i have no notmuch config so far. when i run `notmuch` i get questioned about my name and so forth.
then:
19:08:31 <pazz> Error canonicalizing /home/pazz/.notmuch-config: No such file or directory
19:14:01 <bremner> it could also be a bug. There was some change recently to avoid overwriting symlinks with files.
19:15:29 <bremner> pazz: I think you found a bug. try "touch .notmuch-config" and run notmuch-setup again.
19:21:54 <pazz> bremner: i'm a little confused because i thought i'd done that already. anyway: notmuch setup
fails iff there is no ~/.notmuch-config present.
19:22:38 <pazz> if there is an empty file notmuch setup runs ok, exit code is 0 and the file gets overwritten
...
19:43:55 <Domo_> Error canonicalizing /home/too/.notmuch-config: No such file or directory
19:46:52 <Domo_> apparently realpath(3) fails in case there is no such file ;/
19:50:50 <pazz> forgot to mention: i'm on 0.15.2+85~g44fe1f2d
19:52:55 <bremner> yeah, the offending patch is +79, I think
19:53:25 <Domo_> the reason is obvious .. notmuch_config_save() executes filename = realpath
(config->filename, NULL);
19:53:53 <Domo_> maybe just additionally checking for ENOENT could fix that...
19:57:20 <bremner> sounds plausible. Have to double check we are not relying on some implicit re-allocation by
realpath.
19:58:41 <Domo_> true: free (filename) needs not to be done in case realpath() fails with ENOENT
-------------------------------------->%---------------------------------------
Best,
/p
[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEABECAAYFAlGGzaQACgkQlDQDZ9fWxar2/QCfR9GUqp/LTmf+oFOhgrdlAyRO
OkIAoJQGpZssIzRgckeBzybQ+xorHZuy
=doKC
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [CLI] bug in notmuch setup
2013-05-05 21:22 [CLI] bug in notmuch setup Patrick Totzke
@ 2013-05-06 4:46 ` Jani Nikula
0 siblings, 0 replies; 2+ messages in thread
From: Jani Nikula @ 2013-05-06 4:46 UTC (permalink / raw)
To: Patrick Totzke, notmuch
On Mon, 06 May 2013, Patrick Totzke <patricktotzke@gmail.com> wrote:
> As mentioned on IRC earlier, current master seems to have an issue
> with `notmuch setup`, which fails to write ~/.notmuch-config if not
> already present.
Hi Patrick, thanks for the report. This is fixed by
id:9971e27c7c3fe569765bbca0f21de128ad1e4fac.1367781422.git.jani@nikula.org
Cheers,
Jani.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-06 4:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-05 21:22 [CLI] bug in notmuch setup Patrick Totzke
2013-05-06 4:46 ` Jani Nikula
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).