summaryrefslogtreecommitdiffstats
path: root/third_party/rust/lucet-wasi-wasmsbx/tests/guests/symlink_escape.c
blob: 20929d5193bb579c93633c043b53436431f23c93 (plain)
1
2
3
4
5
6
7
8
9
10
#include <assert.h>
#include <errno.h>
#include <stdio.h>

int main()
{
    FILE *file = fopen("/sandbox/subdir/outside.txt", "r");
    assert(file == NULL);
    assert(errno == ENOTCAPABLE);
}