[PATCH s6] s6-supervise: Don't add '(child)' to the end of PROG

From: Josiah Frentsos <jfrent_at_tilde.team>
Date: Fri, 7 Jun 2024 12:46:51 -0400

This has been unnecessary since commit
970bbeb622573a80381f0f32e6f287195182c0e0.

Signed-off-by: Josiah Frentsos <jfrent_at_tilde.team>
---
 src/supervision/s6-supervise.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/supervision/s6-supervise.c b/src/supervision/s6-supervise.c
index 3201127..c0a3edb 100644
--- a/src/supervision/s6-supervise.c
+++ b/src/supervision/s6-supervise.c
_at__at_ -780,11 +780,10 _at__at_ int main (int argc, char const *const *argv)
   {
     size_t proglen = strlen(PROG) ;
     size_t namelen = strlen(argv[1]) ;
-    char progname[proglen + namelen + 10] ;
+    char progname[proglen + namelen + 2] ;
     memcpy(progname, PROG, proglen) ;
     progname[proglen] = ' ' ;
     memcpy(progname + proglen + 1, argv[1], namelen + 1) ;
-    memcpy(progname + proglen + 2 + namelen, "(child)", 8) ;
     PROG = progname ;
     if (!fd_sanitize()) strerr_diefu1sys(111, "sanitize stdin and stdout") ;
     {
-- 
2.45.1
Received on Fri Jun 07 2024 - 18:46:51 CEST

This archive was generated by hypermail 2.4.0 : Fri Jun 07 2024 - 18:50:47 CEST