diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-09-21 02:32:11 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-09-21 02:32:11 +0000 |
commit | f34aa4c3781d42b400ddc451555aff11110f5ac3 (patch) | |
tree | d426c1d4d45ec0218c5724a7b57b76885a46132b | |
parent | 8a2e56c5dfc41f6946e36234eef4df559286db05 (diff) | |
download | busybox-w32-f34aa4c3781d42b400ddc451555aff11110f5ac3.tar.gz busybox-w32-f34aa4c3781d42b400ddc451555aff11110f5ac3.tar.bz2 busybox-w32-f34aa4c3781d42b400ddc451555aff11110f5ac3.zip |
Hard code the name of init.
-rw-r--r-- | init.c | 3 | ||||
-rw-r--r-- | init/init.c | 3 |
2 files changed, 4 insertions, 2 deletions
@@ -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 | ||
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 | ||