xref: /third_party/node/test/wasi/c/symlink_escape.c (revision 1cb0ef41)
1#include <assert.h>
2#include <errno.h>
3#include <stdio.h>
4
5int main() {
6  FILE* file = fopen("/sandbox/subdir/outside.txt", "r");
7  assert(file == NULL);
8  assert(errno == ENOTCAPABLE);
9}
10