From: "Clément Lassieur" <clement@lassieur.org>
To: Andy Wingo <wingo@igalia.com>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] services: dovecot: Fix unix_listeners and fifo_listeners path types.
Date: Mon, 27 Feb 2017 10:39:27 +0100 [thread overview]
Message-ID: <87shn0ug4w.fsf@lassieur.org> (raw)
In-Reply-To: <87tw7gugze.fsf@lassieur.org>
Clément Lassieur <clement@lassieur.org> writes:
> Andy Wingo <wingo@igalia.com> writes:
>
>> On Sun 26 Feb 2017 20:42, Clément Lassieur <clement@lassieur.org> writes:
>>
>>> * gnu/services/mail.scm (unix-listener-configuration)[path]
>>> (fifo-listener-configuration)[path]: Change type from 'file-name' to 'string'.
>>> * doc/guix.texi (Mail Services): Document it.
>>
>> Why's that? Is the extra checking from the file-name type (that the
>> string start with "/") getting in the way of something?
>
> Yes, because the path is also used as the section name (see
> http://wiki2.dovecot.org/Services#Service_listeners).
>
> So for example, this code (from gnu/services/mail.scm:445) raises an
> error because "lmtp" doesn't start with "/":
>
> (service-configuration
> (kind "lmtp")
> (listeners
> (list (unix-listener-configuration (path "lmtp") (mode "0666")))))
>
> I don't understand how it could work before. Maybe the check wasn't
> done.
Well, maybe here "lmtp" is not the section name, but the path, relative
to "base_dir". Sould I update the documentation to specify that "path"
may be relative to "base_dir" too?
But anyway there's still the bug, because relative paths don't start
with "/".
next prev parent reply other threads:[~2017-02-27 9:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-26 19:42 [PATCH] services: dovecot: Fix unix_listeners and fifo_listeners path types Clément Lassieur
2017-02-27 9:06 ` Andy Wingo
2017-02-27 9:21 ` Clément Lassieur
2017-02-27 9:39 ` Clément Lassieur [this message]
2017-02-27 9:59 ` Clément Lassieur
2017-02-27 10:27 ` Andy Wingo
2017-02-27 11:00 ` Clément Lassieur
2017-03-11 11:13 ` Ludovic Courtès
2017-03-12 0:57 ` Clément Lassieur
2017-03-12 17:01 ` Ludovic Courtès
2017-03-12 18:31 ` Clément Lassieur
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87shn0ug4w.fsf@lassieur.org \
--to=clement@lassieur.org \
--cc=guix-devel@gnu.org \
--cc=wingo@igalia.com \
/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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.