[git commit master] bootchartd: better wording in comment

Denys Vlasenko vda.linux at googlemail.com
Tue May 4 22:40:15 UTC 2010


commit: http://git.busybox.net/busybox/commit/?id=b8ba6b66f5d730efcf13dbbb3f9362dd6840d93b
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 init/bootchartd.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/init/bootchartd.c b/init/bootchartd.c
index 9c43e33..9faf14d 100644
--- a/init/bootchartd.c
+++ b/init/bootchartd.c
@@ -306,11 +306,12 @@ int bootchartd_main(int argc UNUSED_PARAM, char **argv)
 			/* Inform parent that we are ready */
 			raise(SIGSTOP);
 
-		/* If we started by kernel, PATH might be not set.
-		 * And in order to run tar we may need PATH to be set:
+		/* If we are started by kernel, PATH might be unset.
+		 * In order to find "tar", let's set some sane PATH:
 		 */
 		if (cmd == CMD_PID1 && !getenv("PATH"))
 			putenv((char*)bb_PATH_root_path);
+
 		tempdir = make_tempdir(cmd == CMD_START ? argv[2] : NULL);
 		do_logging();
 		finalize(tempdir);
-- 
1.6.3.3



More information about the busybox-cvs mailing list