From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Cl=C3=A9ment=20Lassieur?= Subject: [PATCH] services: dovecot: Fix unix_listeners and fifo_listeners path types. Date: Mon, 27 Feb 2017 10:59:59 +0100 Message-ID: <20170227095959.19715-1-clement@lassieur.org> References: <87shn0ug4w.fsf@lassieur.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54429) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ciI6Y-0005xK-9C for guix-devel@gnu.org; Mon, 27 Feb 2017 05:00:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ciI6V-0007P3-7e for guix-devel@gnu.org; Mon, 27 Feb 2017 05:00:30 -0500 Received: from mail.lassieur.org ([83.152.10.219]:35768) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ciI6U-0007Mx-Vz for guix-devel@gnu.org; Mon, 27 Feb 2017 05:00:27 -0500 Received: from localhost.localdomain (unknown [46.218.109.88]) by mail.lassieur.org (Postfix) with ESMTPSA id 1DC69640103 for ; Mon, 27 Feb 2017 11:00:23 +0100 (CET) In-Reply-To: <87shn0ug4w.fsf@lassieur.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * 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. --- doc/guix.texi | 10 ++++++---- gnu/services/mail.scm | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index be11096a4..97d04a2b7 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -10750,8 +10750,9 @@ Defaults to @samp{()}. Available @code{unix-listener-configuration} fields are: -@deftypevr {@code{unix-listener-configuration} parameter} file-name path -The file name on which to listen. +@deftypevr {@code{unix-listener-configuration} parameter} string path +Path to the file, relative to @code{base-dir} field. This is also used as +the section name. @end deftypevr @deftypevr {@code{unix-listener-configuration} parameter} string mode @@ -10772,8 +10773,9 @@ Defaults to @samp{""}. Available @code{fifo-listener-configuration} fields are: -@deftypevr {@code{fifo-listener-configuration} parameter} file-name path -The file name on which to listen. +@deftypevr {@code{fifo-listener-configuration} parameter} string path +Path to the file, relative to @code{base-dir} field. This is also used as +the section name. @end deftypevr @deftypevr {@code{fifo-listener-configuration} parameter} string mode diff --git a/gnu/services/mail.scm b/gnu/services/mail.scm index 30b1672d3..ededb19b1 100644 --- a/gnu/services/mail.scm +++ b/gnu/services/mail.scm @@ -158,8 +158,9 @@ (define-configuration unix-listener-configuration (path - (file-name (configuration-missing-field 'unix-listener 'path)) - "The file name on which to listen.") + (string (configuration-missing-field 'unix-listener 'path)) + "Path to the file, relative to @code{base-dir} field. This is also used as +the section name.") (mode (string "0600") "The access mode for the socket.") @@ -177,8 +178,9 @@ (define-configuration fifo-listener-configuration (path - (file-name (configuration-missing-field 'fifo-listener 'path)) - "The file name on which to listen.") + (string (configuration-missing-field 'fifo-listener 'path)) + "Path to the file, relative to @code{base-dir} field. This is also used as +the section name.") (mode (string "0600") "The access mode for the socket.") -- 2.11.1