commit | f34aa4c3781d42b400ddc451555aff11110f5ac3 | [log] [tgz] |
---|---|---|
author | Eric Andersen <andersen@codepoet.org> | Thu Sep 21 02:32:11 2000 +0000 |
committer | Eric Andersen <andersen@codepoet.org> | Thu Sep 21 02:32:11 2000 +0000 |
tree | d426c1d4d45ec0218c5724a7b57b76885a46132b | |
parent | 8a2e56c5dfc41f6946e36234eef4df559286db05 [diff] |
Hard code the name of init.
diff --git a/init/init.c b/init/init.c index 8d2d1b2..2c23e60 100644 --- a/init/init.c +++ b/init/init.c
@@ -1015,7 +1015,8 @@ } /* Fix up argv[0] to be certain we claim to be init */ - strncpy(argv[0], "init", strlen(argv[0])+1); + argv[0]="init"; + if (argc > 1) strncpy(argv[1], "\0", strlen(argv[1])+1);