From d2277e262ff7dd2dd946ea16b93462f3dcdf0447 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 22 Nov 2011 17:19:26 +0100 Subject: nommu: fix cases where we mangle argv[0][0] Signed-off-by: Denys Vlasenko --- init/bootchartd.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'init/bootchartd.c') 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) /* 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") -- cgit v1.2.3