| Date: Wed, 27 Jun 2018 11:08:26 +0200
We don't need to pledge tty anymore since 65f998f
Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat:
M main.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
--- |
| @@ -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); |