commit - 4c44f8c0b11f7403c493b3924d77b750e990eb97
commit + e98a72dfcad90436d2d2590757b55f78cd28601c
blob - ce229f46156efda7fbd24c38fa125849669a5fd5
blob + 8835c67c5e9a1b2e9022463a13f0412b27ebacda
--- sandbox.c
+++ sandbox.c
err(1, "unveil");
strlcpy(path, getenv("HOME"), sizeof(path));
- strlcat(path, "/.telescope", sizeof(path));
- if (unveil(path, "r") == -1)
+ strlcat(path, "/.telescope/", sizeof(path));
+ if (unveil(path, "rwc") == -1)
err(1, "unveil");
- if (pledge("stdio rpath", NULL) == -1)
+ if (pledge("stdio rpath wpath cpath", NULL) == -1)
err(1, "pledge");
}