Align early init PATH with system wide OpenWrt path value
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 14 Jan 2016 12:51:36 +0000 (13:51 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 14 Jan 2016 12:51:36 +0000 (13:51 +0100)
Changeset r47080 globally unified the executable search path in OpenWrt,
now update procd to use the same path value.

This fixes diverging path values observed in programs launched by netifd
which inherits the early path value from procd.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
initd/early.c

index e87774f31cd0d44cc99e1ba123044f0ddf98b371..5821c58f20aa8b3822cbd89809069c476612be39 100644 (file)
@@ -90,7 +90,7 @@ early_mounts(void)
 static void
 early_env(void)
 {
-       setenv("PATH", "/bin:/sbin:/usr/bin:/usr/sbin", 1);
+       setenv("PATH", "/usr/sbin:/usr/bin:/sbin:/bin", 1);
 }
 
 void