diff options
| author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-09-21 02:32:11 +0000 |
|---|---|---|
| committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-09-21 02:32:11 +0000 |
| commit | 830afda650eb644112d80aa0d364185cd4954051 (patch) | |
| tree | d426c1d4d45ec0218c5724a7b57b76885a46132b /init | |
| parent | 46af57411c3b803e093777c128ce8fc165cc294f (diff) | |
| download | busybox-w32-830afda650eb644112d80aa0d364185cd4954051.tar.gz busybox-w32-830afda650eb644112d80aa0d364185cd4954051.tar.bz2 busybox-w32-830afda650eb644112d80aa0d364185cd4954051.zip | |
Hard code the name of init.
git-svn-id: svn://busybox.net/trunk/busybox@1083 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'init')
| -rw-r--r-- | init/init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/init/init.c b/init/init.c index 8d2d1b235..2c23e60b7 100644 --- a/init/init.c +++ b/init/init.c | |||
| @@ -1015,7 +1015,8 @@ extern int init_main(int argc, char **argv) | |||
| 1015 | } | 1015 | } |
| 1016 | 1016 | ||
| 1017 | /* Fix up argv[0] to be certain we claim to be init */ | 1017 | /* Fix up argv[0] to be certain we claim to be init */ |
| 1018 | strncpy(argv[0], "init", strlen(argv[0])+1); | 1018 | argv[0]="init"; |
| 1019 | |||
| 1019 | if (argc > 1) | 1020 | if (argc > 1) |
| 1020 | strncpy(argv[1], "\0", strlen(argv[1])+1); | 1021 | strncpy(argv[1], "\0", strlen(argv[1])+1); |
| 1021 | 1022 | ||
