Patch from Vladimir to make sure PATH is set correctly.
authorEric Andersen <andersen@codepoet.org>
Sun, 4 Mar 2001 06:47:33 +0000 (06:47 -0000)
committerEric Andersen <andersen@codepoet.org>
Sun, 4 Mar 2001 06:47:33 +0000 (06:47 -0000)
init.c
init/init.c

diff --git a/init.c b/init.c
index 0620e1ea1e2432c6f6b5864fca690ce360929258..52ee6777a55e6c348e50580f7977f2f7d22f791b 100644 (file)
--- 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
index 0620e1ea1e2432c6f6b5864fca690ce360929258..52ee6777a55e6c348e50580f7977f2f7d22f791b 100644 (file)
@@ -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