services: mpd: Make /var/run/mpd/USER user-owned.
Fixes <https://bugs.gnu.org/44820>.
Reported by Simon <lists@netpanic.org>.
This is a followup to bb124f6e9c
.
* gnu/services/audio.scm (mpd-service-activation): Chown the parent of
DIRECTORY as well.
This commit is contained in:
parent
383f087cd7
commit
ce3b5e5a8d
@ -163,7 +163,11 @@ audio_output {
|
||||
|
||||
(let ((directory #$(mpd-file-name config ".mpd")))
|
||||
(mkdir-p directory)
|
||||
(chown directory (passwd:uid %user) (passwd:gid %user))))))
|
||||
(chown directory (passwd:uid %user) (passwd:gid %user))
|
||||
|
||||
;; Make /var/run/mpd/USER user-owned as well.
|
||||
(chown (dirname directory)
|
||||
(passwd:uid %user) (passwd:gid %user))))))
|
||||
|
||||
|
||||
(define %mpd-accounts
|
||||
|
Loading…
Reference in New Issue
Block a user