iPledge dns for the fork too in case of hostname lookup - geomyidae - A small C-based gopherd. Err bitreich.org 70 hgit clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/ URL:git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/ bitreich.org 70 1Log /scm/geomyidae/log.gph bitreich.org 70 1Files /scm/geomyidae/files.gph bitreich.org 70 1Refs /scm/geomyidae/refs.gph bitreich.org 70 1Tags /scm/geomyidae/tag bitreich.org 70 1README /scm/geomyidae/file/README.gph bitreich.org 70 1LICENSE /scm/geomyidae/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 1commit 50a7926572a40172d5c2ffe870d41ca7dc9d7046 /scm/geomyidae/commit/50a7926572a40172d5c2ffe870d41ca7dc9d7046.gph bitreich.org 70 1parent dd3f998b716d869d25af0df0d94685d56e882bd1 /scm/geomyidae/commit/dd3f998b716d869d25af0df0d94685d56e882bd1.gph bitreich.org 70 hAuthor: Quentin Rameau URL:mailto:quinq@fifth.space bitreich.org 70 iDate: Wed, 27 Jun 2018 10:34:25 +0200 Err bitreich.org 70 i Err bitreich.org 70 iPledge dns for the fork too in case of hostname lookup Err bitreich.org 70 i Err bitreich.org 70 iSigned-off-by: Christoph Lohmann <20h@r-36.net> Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M main.c | 10 ++++++---- Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 6 insertions(+), 4 deletions(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/main.c b/main.c /scm/geomyidae/file/main.c.gph bitreich.org 70 i@@ -539,8 +539,8 @@ main(int argc, char *argv[]) Err bitreich.org 70 i cltlen = sizeof(clt); Err bitreich.org 70 i Err bitreich.org 70 i #ifdef __OpenBSD__ Err bitreich.org 70 i- char *promises = (char[30]){}; Err bitreich.org 70 i- snprintf(promises, 30, "rpath inet stdio proc exec %s", Err bitreich.org 70 i+ char promises[31]; /* check the size needed in the fork too */ Err bitreich.org 70 i+ snprintf(promises, sizeof(promises), "rpath inet stdio proc exec %s", Err bitreich.org 70 i revlookup ? "dns" : ""); Err bitreich.org 70 i if (pledge(promises, NULL) == -1) { Err bitreich.org 70 i perror("pledge"); Err bitreich.org 70 i@@ -587,8 +587,10 @@ main(int argc, char *argv[]) Err bitreich.org 70 i signal(SIGALRM, SIG_DFL); Err bitreich.org 70 i Err bitreich.org 70 i #ifdef __OpenBSD__ Err bitreich.org 70 i- promises = nocgi ? "rpath inet stdio" : Err bitreich.org 70 i- "rpath inet stdio proc exec"; Err bitreich.org 70 i+ snprintf(promises, sizeof(promises), Err bitreich.org 70 i+ "rpath inet stdio %s %s", Err bitreich.org 70 i+ nocgi ? "" : "proc exec", Err bitreich.org 70 i+ revlookup ? "dns" : ""); Err bitreich.org 70 i if (pledge(promises, NULL) == -1) { Err bitreich.org 70 i perror("pledge"); Err bitreich.org 70 i exit(1); Err bitreich.org 70 .