]> git.proxmox.com Git - wasi-libc.git/commit
Use `ENOENT` rather than `ENOTCAPABLE` for missing preopens. (#370)
authorDan Gohman <dev@sunfishcode.online>
Wed, 21 Dec 2022 23:47:53 +0000 (15:47 -0800)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 2 Aug 2023 10:24:08 +0000 (12:24 +0200)
commit8f23aef2df00c1ead5c18ab74aa7f6077279149b
tree099c5c2f8904e8e866763e2151defee53cb3953c
parent7c552a6c87afc35739141eacd5e334a1e8a3983a
Use `ENOENT` rather than `ENOTCAPABLE` for missing preopens. (#370)

When a user calls `open` with a path that does not have a corresponding
preopen, set errno to `ENOENT` rather than `ENOTCAPABLE`. This
conceptually represents an attempt to open a path which has not been
provided within the sandbox, so it's more accurately represented as
"not present" rather than "insufficient capabilities".
libc-bottom-half/sources/posix.c