update busybox-power against BusyBox 1.21 release
[busybox-power] / debian / patches / shell-ash-export-HOME.patch
1 Note: Upstream debian has identified this patch to be incorrect[1] and will
2 remove it in Debian Jessie (8.0).
3
4 We are not affected by this behavior since we have FEATURE_PREFER_APPLETS=n
5 and CONFIG_FEATURE_SH_STANDALONE=n. Also see doc/nofork_noexec.txt in BusyBox'
6 source. To prevent random breakage (Nokia ships this patch in their trees as
7 well), we will keep carrying this patch, at least in the foreseeable future.
8
9 [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=679377#36
10
11 --- a/shell/ash.c
12 +++ b/shell/ash.c
13 @@ -1909,7 +1909,7 @@ static const struct {
14         { VSTRFIXED|VTEXTFIXED|VUNSET, "MAIL"      , changemail      },
15         { VSTRFIXED|VTEXTFIXED|VUNSET, "MAILPATH"  , changemail      },
16  #endif
17 -       { VSTRFIXED|VTEXTFIXED       , bb_PATH_root_path, changepath },
18 +       { VSTRFIXED|VTEXTFIXED|VEXPORT, bb_PATH_root_path, changepath },
19         { VSTRFIXED|VTEXTFIXED       , "PS1=$ "    , NULL            },
20         { VSTRFIXED|VTEXTFIXED       , "PS2=> "    , NULL            },
21         { VSTRFIXED|VTEXTFIXED       , "PS4=+ "    , NULL            },