summaryrefslogtreecommitdiff
path: root/test/wasi/c/cant_dotdot.c
blob: e2722062cd0156e678702b26ea0d8ccb79e3804e (plain)
1
2
3
4
5
6
7
8
9
10
11
#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;
}