diff options
author | Eric Andersen | 2000-09-21 02:32:11 +0000 |
---|---|---|
committer | Eric Andersen | 2000-09-21 02:32:11 +0000 |
commit | f34aa4c3781d42b400ddc451555aff11110f5ac3 (patch) | |
tree | d426c1d4d45ec0218c5724a7b57b76885a46132b /init.c | |
parent | 8a2e56c5dfc41f6946e36234eef4df559286db05 (diff) | |
download | busybox-f34aa4c3781d42b400ddc451555aff11110f5ac3.zip busybox-f34aa4c3781d42b400ddc451555aff11110f5ac3.tar.gz |
Hard code the name of init.
Diffstat (limited to 'init.c')
-rw-r--r-- | init.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1015,7 +1015,8 @@ extern int init_main(int argc, char **argv) } /* 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); |