We don't need to pledge tty anymore since 65f998f - geomyidae - A small C-based… | |
git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfri… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
LICENSE | |
--- | |
commit dd3f998b716d869d25af0df0d94685d56e882bd1 | |
parent 3dfa0e1271ad78774a06452913fb30aa0bf25eb0 | |
Author: Quentin Rameau <[email protected]> | |
Date: Wed, 27 Jun 2018 11:08:26 +0200 | |
We don't need to pledge tty anymore since 65f998f | |
Signed-off-by: Christoph Lohmann <[email protected]> | |
Diffstat: | |
M main.c | 7 +++---- | |
1 file changed, 3 insertions(+), 4 deletions(-) | |
--- | |
diff --git a/main.c b/main.c | |
@@ -539,10 +539,9 @@ main(int argc, char *argv[]) | |
cltlen = sizeof(clt); | |
#ifdef __OpenBSD__ | |
- char *promises = (char[35]){}; | |
- snprintf(promises, 35, "rpath inet stdio proc exec %s %s", | |
- revlookup ? "dns" : "", | |
- dofork ? "tty" : ""); | |
+ char *promises = (char[30]){}; | |
+ snprintf(promises, 30, "rpath inet stdio proc exec %s", | |
+ revlookup ? "dns" : ""); | |
if (pledge(promises, NULL) == -1) { | |
perror("pledge"); | |
exit(1); |