disallow all relative paths (./ or ../)
commit9ec94aa982692ba2c06bc7d89994459615ccd740
authorKartik K. Agaram <vc@akkartik.com>
Mon, 21 Mar 2022 00:58:14 +0000 (20 17:58 -0700)
committerKartik K. Agaram <vc@akkartik.com>
Mon, 21 Mar 2022 00:58:14 +0000 (20 17:58 -0700)
tree1c6eb502974599a5ada6b60533db6aa1425022b2
parentc7d3037e9db38a8391c2e3bc4c93eaaeaf7a6b46
disallow all relative paths (./ or ../)

Teliva's model doesn't include any way to change directory. We just have
relative paths and absolute paths. Relative paths should not be able to
reach into parent directories.

The current test is a bit hacky; it also disallows directories ending in
a period. Hopefully not an issue.
src/liolib.c
src/loslib.c
src/teliva.c
src/teliva.h