aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2026-07-25 10:23:46 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2026-07-25 10:23:46 +0000
commit4ea3aea9f7c7096e20b774cebbdf7d16f122e464 (patch)
tree1f6af9816f38406112868fb5ddd86d095cfa4c63
parent82e0628b934630fadd3d3759b27356da156baaa3 (diff)
downloads6-4ea3aea9f7c7096e20b774cebbdf7d16f122e464.tar.gz
Actually test the correct string without a terminating newline...HEADmain
-rw-r--r--AUTHORS1
-rw-r--r--src/supervision/s6-notify-fd-from-socket.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/AUTHORS b/AUTHORS
index cee72af..611c075 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -48,3 +48,4 @@ Thanks to:
Josiah Frentsos <jfrent@tilde.team>
Thorsten Glaser <tg@mirbsd.de>
AndrĂ¡s Bodor <bodand@proton.me>
+ Gerrit Pape <pape@smarden.org>
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 ;
}
}