From c52e2fc8643723b2e153dfbcc4521c4c5839a30c Mon Sep 17 00:00:00 2001 From: Alexey Gladkov Date: Thu, 16 Dec 2021 18:33:00 +0300 Subject: OWL: initcmd_setenv: exclude INIT_VERSION --- src/init.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/init.c b/src/init.c index 5f5885b..e319815 100644 --- a/src/init.c +++ b/src/init.c @@ -2397,9 +2397,10 @@ void initcmd_setenv(char *data, int size) data = ++p; /* - * We only allow INIT_* to be set. + * We only allow INIT_* to be set (excluding INIT_VERSION) */ - if (strncmp(env, "INIT_", 5) != 0) + if ((strncmp(env, "INIT_", 5) != 0) + || !strncmp(env, "INIT_VERSION=", 13)) continue; sz = strcspn(env, "="); -- 2.25.4