ash: var: Set IFS to fixed value at start time

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@gondor.apana.org.au>

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2018-08-05 13:59:35 +02:00
parent 9abf53beb4
commit 67dae152f4

View File

@ -13960,6 +13960,7 @@ init(void)
} }
} }
setvareq((char*)defifsvar, VTEXTFIXED);
setvareq((char*)defoptindvar, VTEXTFIXED); setvareq((char*)defoptindvar, VTEXTFIXED);
setvar0("PPID", utoa(getppid())); setvar0("PPID", utoa(getppid()));