diff mbox

var: Set IFS to fixed value at start time

Message ID 20180507174805.w5om7ypz5klfl7vw@gondor.apana.org.au (mailing list archive)
State Superseded
Delegated to: Herbert Xu
Headers show

Commit Message

Herbert Xu May 7, 2018, 5:48 p.m. UTC
This patch forces the IFS variable to always be set to its default
value, regardless of the environment.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
diff mbox

Patch

diff --git a/src/var.c b/src/var.c
index cc6f7f2..8fb880b 100644
--- a/src/var.c
+++ b/src/var.c
@@ -143,6 +143,7 @@  INIT {
 		}
 	}
 
+	setvareq(defifsvar, VTEXTFIXED);
 	setvareq(defoptindvar, VTEXTFIXED);
 
 	fmtstr(ppid + 5, sizeof(ppid) - 5, "%ld", (long) getppid());