unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Andy Wingo <wingo@igalia.com>
To: "Clément Lassieur" <clement@lassieur.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] services: dovecot: Fix unix_listeners and fifo_listeners path types.
Date: Mon, 27 Feb 2017 11:27:47 +0100	[thread overview]
Message-ID: <cucinnwudwc.fsf@igalia.com> (raw)
In-Reply-To: <87shn0ug4w.fsf@lassieur.org> ("Clément Lassieur"'s message of "Mon, 27 Feb 2017 10:39:27 +0100")

On Mon 27 Feb 2017 10:39, Clément Lassieur <clement@lassieur.org> writes:

> 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?

Sure, anyway patch LGTM.  Thanks for taking the time to explain.

Andy

  parent reply	other threads:[~2017-02-27 10:28 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
2017-02-27  9:59       ` Clément Lassieur
2017-02-27 10:27       ` Andy Wingo [this message]
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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cucinnwudwc.fsf@igalia.com \
    --to=wingo@igalia.com \
    --cc=clement@lassieur.org \
    --cc=guix-devel@gnu.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://git.savannah.gnu.org/cgit/guix.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).