commit - c2db6724337c437ae8baf3af7238503eaf44a06b
commit + eb6600df992a05d6bfd1e3c07ee2d18427cb6286
blob - 461e5d1d972ae9af1d82ad77b899dd0cbfcf1bfb
blob + 842187bfe46e04d7f18ec41db5d5295175ffe0ed
--- tog/tog.c
+++ tog/tog.c
struct tog_view *view;
#ifndef PROFILE
- if (pledge("stdio rpath wpath cpath flock proc tty exec sendfd", NULL)
- == -1)
+ if (pledge("stdio rpath wpath cpath flock proc tty exec sendfd unveil",
+ NULL) == -1)
err(1, "pledge");
#endif
id_str2 = argv[2];
} else
usage_diff();
+
+ error = apply_unveil(repo_path, NULL);
+ if (error)
+ goto done;
error = got_repo_open(&repo, repo_path);
free(repo_path);