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

@ -1,5 +1,5 @@
# feuille version # feuille version
VERSION = 2.0.0 VERSION = 2.0.1
# paths (customize them to fit your system) # paths (customize them to fit your system)
PREFIX = /usr/local PREFIX = /usr/local

View file

@ -14,7 +14,7 @@
. ftr VB CB . ftr VB CB
. ftr VBI CBI . ftr VBI CBI
.\} .\}
.TH "feuille" "1" "November 2022" "feuille 2.0.0" "" .TH "feuille" "1" "November 2022" "feuille 2.0.1" ""
.hy .hy
.SH NAME .SH NAME
.PP .PP

View file

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