[git commit] ash: var: Set IFS to fixed value at start time

Denys Vlasenko vda.linux at googlemail.com
Sun Aug 5 11:59:35 UTC 2018


commit: https://git.busybox.net/busybox/commit/?id=67dae152f4bf5456e4ea7950f4b55356aa37ec6c
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Upstream commit:

    Date: Sat, 19 May 2018 02:39:43 +0800
    var: Set IFS to fixed value at start time

    This patch forces the IFS variable to always be set to its default
    value, regardless of the environment.

    It also removes the long unused IFS_BROKEN code.

    Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au>

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 shell/ash.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/shell/ash.c b/shell/ash.c
index 6cda7251e..6ef0a7ac2 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -13960,6 +13960,7 @@ init(void)
 			}
 		}
 
+		setvareq((char*)defifsvar, VTEXTFIXED);
 		setvareq((char*)defoptindvar, VTEXTFIXED);
 
 		setvar0("PPID", utoa(getppid()));


More information about the busybox-cvs mailing list