diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2019-07-08 09:11:57 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2019-07-08 09:11:57 +0000 |
commit | 3d264488fbdb00f6cd725ab9635c0faa91b48c55 (patch) | |
tree | 199b164099bb484c831e05e453be598f31e2327e /src | |
parent | 2c1dc11e3954d3a09f074eba0197087bb1c5522e (diff) | |
download | s6-linux-init-3d264488fbdb00f6cd725ab9635c0faa91b48c55.tar.gz s6-linux-init-3d264488fbdb00f6cd725ab9635c0faa91b48c55.tar.xz s6-linux-init-3d264488fbdb00f6cd725ab9635c0faa91b48c55.zip |
bugfix: don't overwrite the first kernel cmdline argument
Diffstat (limited to 'src')
-rw-r--r-- | src/init/s6-linux-init.c | 1 |
1 files changed, 0 insertions, 1 deletions
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 ; |