commit 245c7240766e65f25db986d5d28da9a9b92826e6 from: Stefan Sperling date: Thu Jun 17 16:36:47 2021 UTC unveil gmon.out if gotweb is being profiled ok tracey commit - 9ec58fff16b1c2fc1d33d9955b42cadaa9e26f29 commit + 245c7240766e65f25db986d5d28da9a9b92826e6 blob - 3a689cd14ad0dacbec839cd0d7dead37f4d5f83c blob + eb1b09358201b97ddb3e233fb0ac41691daa0081 --- gotweb/gotweb.c +++ gotweb/gotweb.c @@ -308,6 +308,10 @@ gw_apply_unveil(const char *repo_path) { const struct got_error *err; +#ifdef PROFILE + if (unveil("gmon.out", "rwc") != 0) + return got_error_from_errno2("unveil", "gmon.out"); +#endif if (repo_path && unveil(repo_path, "r") != 0) return got_error_from_errno2("unveil", repo_path);