summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorDenys Vlasenko2011-11-22 17:19:26 +0100
committerDenys Vlasenko2011-11-22 17:19:26 +0100
commitd2277e262ff7dd2dd946ea16b93462f3dcdf0447 (patch)
tree985e045011ef9eb5b0136ce36c321cce015e56d7 /init
parentfcb9e07eca65b98093dd0b2b80451934a8719914 (diff)
downloadbusybox-d2277e262ff7dd2dd946ea16b93462f3dcdf0447.zip
busybox-d2277e262ff7dd2dd946ea16b93462f3dcdf0447.tar.gz
nommu: fix cases where we mangle argv[0][0]
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'init')
-rw-r--r--init/bootchartd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/init/bootchartd.c b/init/bootchartd.c
index 5f6121f..cc23e60 100644
--- a/init/bootchartd.c
+++ b/init/bootchartd.c
@@ -418,6 +418,8 @@ int bootchartd_main(int argc UNUSED_PARAM, char **argv)
/* parent */
+ USE_FOR_NOMMU(argv[0][0] &= 0x7f); /* undo fork_or_rexec() damage */
+
if (DO_SIGNAL_SYNC) {
/* Wait for logger child to set handlers, then unpause it.
* Otherwise with short-lived PROG (e.g. "bootchartd start true")