This is an automated email from the git hooks/post-receive script.

civodul pushed a commit to branch main
in repository shepherd.

The following commit(s) were added to refs/heads/main by this push:
     new 2d70e2f  tests: Adjust system log test for the Hurd.
2d70e2f is described below

commit 2d70e2f3948910ab97b9d90d75aa0196596fa917
Author: Ludovic Courtès <[email protected]>
AuthorDate: Wed Apr 23 18:12:16 2025 +0200

    tests: Adjust system log test for the Hurd.
    
    Partly fixes <https://issues.guix.gnu.org/77634>.
    
    * tests/services/system-log.sh: Do not send messages with an AF_UNIX
    sender to $syslog_remote_file.
    
    Reported-by: Yelninei <[email protected]>
---
 tests/services/system-log.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tests/services/system-log.sh b/tests/services/system-log.sh
index 2d3cb41..047b9dd 100644
--- a/tests/services/system-log.sh
+++ b/tests/services/system-log.sh
@@ -47,7 +47,11 @@ cat > "$conf" <<EOF
 
 (define (message-destination message)
   (pk 'message-destination->
-      (cond ((system-log-message-sender message)
+      (cond ((and=> (system-log-message-sender message)
+                    (lambda (address)
+                      ;; On the Hurd, 'sender' is set even for
+                      ;; AF_UNIX connections.
+                      (not (= AF_UNIX (sockaddr:fam address)))))
              (list "$syslog_remote_file"))
             ((= (system-log-message-facility message)
                (system-log-facility authorization/private))

Reply via email to