From 3d264488fbdb00f6cd725ab9635c0faa91b48c55 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 8 Jul 2019 09:11:57 +0000 Subject: bugfix: don't overwrite the first kernel cmdline argument --- src/init/s6-linux-init.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/init/s6-linux-init.c b/src/init/s6-linux-init.c index e322fa4..75c9eee 100644 --- a/src/init/s6-linux-init.c +++ b/src/init/s6-linux-init.c @@ -43,7 +43,6 @@ static inline void run_stage2 (char const *basedir, char const **argv, unsigned char const *childargv[argc + 3] ; char fn[dirlen + sizeof("/scripts/" STAGE2)] ; PROG = "s6-linux-init (child)" ; - argv[0] = PROG ; memcpy(fn, basedir, dirlen) ; memcpy(fn + dirlen, "/scripts/" STAGE2, sizeof("/scripts/" STAGE2)) ; childargv[0] = fn ; -- cgit v1.2.3