summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen2001-03-04 06:47:33 +0000
committerEric Andersen2001-03-04 06:47:33 +0000
commit452fd33ffa0bc1abc48e1f220b3b3b6e3649c37e (patch)
treebdc03ef4f275ec40dd6d40bcbced666e49cfc469
parent076cdc24fcf65d9e8868418f17a6da10862bef2d (diff)
downloadbusybox-452fd33ffa0bc1abc48e1f220b3b3b6e3649c37e.zip
busybox-452fd33ffa0bc1abc48e1f220b3b3b6e3649c37e.tar.gz
Patch from Vladimir to make sure PATH is set correctly.
-rw-r--r--init.c2
-rw-r--r--init/init.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/init.c b/init.c
index 0620e1e..52ee677 100644
--- a/init.c
+++ b/init.c
@@ -886,7 +886,7 @@ extern int init_main(int argc, char **argv)
setsid();
/* Make sure PATH is set to something sane */
- putenv(_PATH_STDPATH);
+ putenv("PATH="_PATH_STDPATH);
/* Hello world */
#ifndef DEBUG_INIT
diff --git a/init/init.c b/init/init.c
index 0620e1e..52ee677 100644
--- a/init/init.c
+++ b/init/init.c
@@ -886,7 +886,7 @@ extern int init_main(int argc, char **argv)
setsid();
/* Make sure PATH is set to something sane */
- putenv(_PATH_STDPATH);
+ putenv("PATH="_PATH_STDPATH);
/* Hello world */
#ifndef DEBUG_INIT