guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[shepherd] 05/07: support: 'verify-dir' reports errors with 'report-erro


From: Ludovic Courtès
Subject: [shepherd] 05/07: support: 'verify-dir' reports errors with 'report-error'.
Date: Wed, 19 Apr 2023 18:17:33 -0400 (EDT)

civodul pushed a commit to branch master
in repository shepherd.

commit 75945f1b15a1d8d531b1cf5f20fdaeaa7f09f1af
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Wed Apr 19 18:53:36 2023 +0200

    support: 'verify-dir' reports errors with 'report-error'.
    
    * modules/shepherd/support.scm (verify-dir): Use 'report-error' rather
    than 'local-output'.
---
 modules/shepherd/support.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/shepherd/support.scm b/modules/shepherd/support.scm
index 2cf6aae..4cd21ac 100644
--- a/modules/shepherd/support.scm
+++ b/modules/shepherd/support.scm
@@ -451,5 +451,6 @@ directory are not checked."
     (let ((dir-stat (stat dir)))
       (unless (and (= (stat:uid dir-stat) (getuid))
                    (= (stat:perms dir-stat) #o700))
-        (local-output (l10n "Socket directory setup is insecure."))
+        (report-error (l10n "~a: socket directory has insecure permissions")
+                      dir)
         (exit 1)))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]