diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-11-22 17:19:26 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-11-22 17:19:26 +0100 |
commit | d2277e262ff7dd2dd946ea16b93462f3dcdf0447 (patch) | |
tree | 985e045011ef9eb5b0136ce36c321cce015e56d7 /init/bootchartd.c | |
parent | fcb9e07eca65b98093dd0b2b80451934a8719914 (diff) | |
download | busybox-w32-d2277e262ff7dd2dd946ea16b93462f3dcdf0447.tar.gz busybox-w32-d2277e262ff7dd2dd946ea16b93462f3dcdf0447.tar.bz2 busybox-w32-d2277e262ff7dd2dd946ea16b93462f3dcdf0447.zip |
nommu: fix cases where we mangle argv[0][0]
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'init/bootchartd.c')
-rw-r--r-- | init/bootchartd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/init/bootchartd.c b/init/bootchartd.c index 5f6121fa4..cc23e6073 100644 --- a/init/bootchartd.c +++ b/init/bootchartd.c | |||
@@ -418,6 +418,8 @@ int bootchartd_main(int argc UNUSED_PARAM, char **argv) | |||
418 | 418 | ||
419 | /* parent */ | 419 | /* parent */ |
420 | 420 | ||
421 | USE_FOR_NOMMU(argv[0][0] &= 0x7f); /* undo fork_or_rexec() damage */ | ||
422 | |||
421 | if (DO_SIGNAL_SYNC) { | 423 | if (DO_SIGNAL_SYNC) { |
422 | /* Wait for logger child to set handlers, then unpause it. | 424 | /* Wait for logger child to set handlers, then unpause it. |
423 | * Otherwise with short-lived PROG (e.g. "bootchartd start true") | 425 | * Otherwise with short-lived PROG (e.g. "bootchartd start true") |