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
|
@ -1,5 +1,5 @@
|
|||
# feuille version
|
||||
VERSION = 2.0.0
|
||||
VERSION = 2.0.1
|
||||
|
||||
# paths (customize them to fit your system)
|
||||
PREFIX = /usr/local
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
. ftr VB CB
|
||||
. ftr VBI CBI
|
||||
.\}
|
||||
.TH "feuille" "1" "November 2022" "feuille 2.0.0" ""
|
||||
.TH "feuille" "1" "November 2022" "feuille 2.0.1" ""
|
||||
.hy
|
||||
.SH NAME
|
||||
.PP
|
||||
|
|
|
@ -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