c8072ea1fb3763aaa97d93177884ebd875084b1d
[15.05/openwrt.git] / package / system / procd / patches / 0001-Align-early-init-PATH-with-system-wide-OpenWrt-path.patch
1 From 45cb04fd85d788a37367a5385e5e90dd98a0a991 Mon Sep 17 00:00:00 2001
2 From: Jo-Philipp Wich <jow@openwrt.org>
3 Date: Thu, 14 Jan 2016 13:51:36 +0100
4 Subject: [PATCH] Align early init PATH with system wide OpenWrt path value
5
6 Changeset r47080 globally unified the executable search path in OpenWrt,
7 now update procd to use the same path value.
8
9 This fixes diverging path values observed in programs launched by netifd
10 which inherits the early path value from procd.
11
12 Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
13 ---
14  initd/early.c | 2 +-
15  1 file changed, 1 insertion(+), 1 deletion(-)
16
17 diff --git a/initd/early.c b/initd/early.c
18 index e87774f..5821c58 100644
19 --- a/initd/early.c
20 +++ b/initd/early.c
21 @@ -90,7 +90,7 @@ early_mounts(void)
22  static void
23  early_env(void)
24  {
25 -       setenv("PATH", "/bin:/sbin:/usr/bin:/usr/sbin", 1);
26 +       setenv("PATH", "/usr/sbin:/usr/bin:/sbin:/bin", 1);
27  }
28  
29  void
30 -- 
31 2.1.4
32