diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2019-04-28 02:49:19 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2019-04-28 02:49:19 +0000 |
commit | 4813ad91d86f6235607cc9f981e00964704c1764 (patch) | |
tree | fb18218aaf6a907fa73ad3a41788a0316e7bfbe2 /src/init/s6-linux-init-maker.c | |
parent | dc8e8e9d2295b35bb18fd5a4d052e03b0d4605a4 (diff) | |
download | s6-linux-init-4813ad91d86f6235607cc9f981e00964704c1764.tar.xz |
Fascist check for env_store
Diffstat (limited to 'src/init/s6-linux-init-maker.c')
-rw-r--r-- | src/init/s6-linux-init-maker.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 "/")) |