From 4ea3aea9f7c7096e20b774cebbdf7d16f122e464 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 25 Jul 2026 10:23:46 +0000 Subject: Actually test the correct string without a terminating newline... --- src/supervision/s6-notify-fd-from-socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/supervision') diff --git a/src/supervision/s6-notify-fd-from-socket.c b/src/supervision/s6-notify-fd-from-socket.c index 625f57a..bb5d887 100644 --- a/src/supervision/s6-notify-fd-from-socket.c +++ b/src/supervision/s6-notify-fd-from-socket.c @@ -75,7 +75,7 @@ static inline int run_child (int sock, int fd, unsigned int timeout) if (!strncmp(buf, "READY=1", 7) && (!buf[7] || buf[7] == '\n')) break ; else { - char *s = strstr(buf, "\nREADY=1\n") ; + char *s = strstr(buf, "\nREADY=1") ; if (s && (!s[8] || s[8] == '\n')) break ; } } -- cgit v1.3.1