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

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

    return 0;
}