From 4813ad91d86f6235607cc9f981e00964704c1764 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 28 Apr 2019 02:49:19 +0000 Subject: Fascist check for env_store --- src/init/s6-linux-init-maker.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/init/s6-linux-init-maker.c') diff --git a/src/init/s6-linux-init-maker.c b/src/init/s6-linux-init-maker.c index 94bb67a..0dc8310 100644 --- a/src/init/s6-linux-init-maker.c +++ b/src/init/s6-linux-init-maker.c @@ -605,6 +605,8 @@ int main (int argc, char const *const *argv, char const *const *envp) strerr_dief3x(100, "base directory ", robase, " is not absolute") ; if (slashdev && slashdev[0] != '/') strerr_dief3x(100, "devtmpfs mounting location ", slashdev, " is not absolute") ; + if (env_store[0] != '/') + strerr_dief3x(100, "kernel environment storage directory ", env_store, " is not absolute") ; if (timestamp_style > 3) strerr_dief1x(100, "-t timestamp_style must be 0, 1, 2 or 3") ; if (env_store && !str_start(env_store, S6_LINUX_INIT_TMPFS "/")) -- cgit v1.2.3