[openssh-commits] [openssh] branch V_9_8 updated: Cast to sockaddr * in systemd interface.

git+noreply at mindrot.org git+noreply at mindrot.org
Sun Jul 7 18:48:04 AEST 2024


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

dtucker pushed a commit to branch V_9_8
in repository openssh.

The following commit(s) were added to refs/heads/V_9_8 by this push:
     new b35a64dd Cast to sockaddr * in systemd interface.
b35a64dd is described below

commit b35a64dd7d5278af859ff8cca1fbe42d2c308ac0
Author: Darren Tucker <dtucker at dtucker.net>
AuthorDate: Sun Jul 7 18:46:19 2024 +1000

    Cast to sockaddr * in systemd interface.
    
    Fixes build with musl libx.  bz#3707.
---
 openbsd-compat/port-linux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/openbsd-compat/port-linux.c b/openbsd-compat/port-linux.c
index 4c024c6d..8adfec5a 100644
--- a/openbsd-compat/port-linux.c
+++ b/openbsd-compat/port-linux.c
@@ -366,7 +366,7 @@ ssh_systemd_notify(const char *fmt, ...)
 		error_f("socket \"%s\": %s", path, strerror(errno));
 		goto out;
 	}
-	if (connect(fd, &addr, sizeof(addr)) != 0) {
+	if (connect(fd, (struct sockaddr *)&addr, sizeof(addr)) != 0) {
 		error_f("socket \"%s\" connect: %s", path, strerror(errno));
 		goto out;
 	}

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list