fix(feuille.c): pledge if using cosmopolitan libc
This commit is contained in:
parent
0ccd538c97
commit
de2c58196c
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Reference in a new issue