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... --- AUTHORS | 1 + src/supervision/s6-notify-fd-from-socket.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index cee72af..611c075 100644 --- a/AUTHORS +++ b/AUTHORS @@ -48,3 +48,4 @@ Thanks to: Josiah Frentsos Thorsten Glaser AndrĂ¡s Bodor + Gerrit Pape 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