fix(feuille.c): pledge if using cosmopolitan libc

This commit is contained in:
Tom MTT 2022-12-11 02:12:30 +01:00
parent 0ccd538c97
commit de2c58196c
3 changed files with 3 additions and 3 deletions

View file

@ -400,7 +400,7 @@ int main(int argc, char *argv[])
die(1, "could not switch to user `%s'.\n", settings.user);
}
#ifdef __OpenBSD__
#if defined __OpenBSD__ || defined COSMOPOLITAN
/* OpenBSD-only security measures */
pledge("proc stdio rpath wpath cpath inet", "stdio rpath wpath cpath inet");
#endif