unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Brice Waegeneire <brice@waegenei.re>
To: 49650@debbugs.gnu.org
Subject: [bug#49650] [PATCH] services: dovecot: Fix "/var/run/dovecot" owner.
Date: Mon, 19 Jul 2021 23:19:43 +0200	[thread overview]
Message-ID: <20210719211943.23824-1-brice@waegenei.re> (raw)

* gnu/services/mail.scm (%dovecot-activation)[mkdir-p/perms]: Change
  owner of "directory" not the static string "/var/run/dovecot".
---
 gnu/services/mail.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Following a discussion on IRC¹. There are several other bug in that service
but those should only manifest when using non default configuration, for
example using a user other that "dovecot" or a run time directory other than
"/var/run/dovevot", etc...

¹ <http://logs.guix.gnu.org/guix/2021-07-17.log#151005>

diff --git a/gnu/services/mail.scm b/gnu/services/mail.scm
index 72dc123f41..805f4ec864 100644
--- a/gnu/services/mail.scm
+++ b/gnu/services/mail.scm
@@ -1515,7 +1515,7 @@ greyed out, instead of only later giving \"not selectable\" popup error.
         (use-modules (guix build utils))
         (define (mkdir-p/perms directory owner perms)
           (mkdir-p directory)
-          (chown "/var/run/dovecot" (passwd:uid owner) (passwd:gid owner))
+          (chown directory (passwd:uid owner) (passwd:gid owner))
           (chmod directory perms))
         (define (build-subject parameters)
           (string-concatenate
-- 
2.32.0





             reply	other threads:[~2021-07-19 21:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-19 21:19 Brice Waegeneire [this message]
2021-12-21 20:36 ` [bug#49650] [PATCH v2] services: dovecot: Fix "/var/run/dovecot" owner Brice Waegeneire

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=20210719211943.23824-1-brice@waegenei.re \
    --to=brice@waegenei.re \
    --cc=49650@debbugs.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).