wasi-filesystem
wasi-filesystem copied to clipboard
Should `readlink` fail if the target is absolute?
Since WASI can't currently open symlinks with absolute paths, should readlink
, fail when reading a symlink with an absolute path? That would avoid accidental leakage of host filesystem paths in some cases.
Hmm to convolute matters a bit more, most if not all "major" implementations allow remapping of pre-opened directories so they can be opened if the directory is mapped...
That's a good point; if someone is using readlink
to do manual path resolution with preopens, this would break them.