diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2015-11-21 16:04:21 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2015-11-21 16:04:21 +0000 |
commit | 2f473631a5ba9bbd7ae3b97170d985fd7a233d8d (patch) | |
tree | a18ddc401ce9133f950249db7ab298874e218ed4 /usr.bin | |
parent | 10169188ab327e414cb6c515bebeb82a962eaeda (diff) |
In pledge(), put "dns" right after "inet".
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/openssl/openssl.c | 4 | ||||
-rw-r--r-- | usr.bin/openssl/s_client.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/openssl/openssl.c b/usr.bin/openssl/openssl.c index f99c625260e..e8c75daf0ac 100644 --- a/usr.bin/openssl/openssl.c +++ b/usr.bin/openssl/openssl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: openssl.c,v 1.20 2015/11/21 16:03:06 jca Exp $ */ +/* $OpenBSD: openssl.c,v 1.21 2015/11/21 16:04:20 jca Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -438,7 +438,7 @@ main(int argc, char **argv) arg.data = NULL; arg.count = 0; - if (pledge("stdio inet rpath wpath cpath proc flock tty dns", NULL) == -1) { + if (pledge("stdio inet dns rpath wpath cpath proc flock tty", NULL) == -1) { fprintf(stderr, "openssl: pledge: %s\n", strerror(errno)); exit(1); } diff --git a/usr.bin/openssl/s_client.c b/usr.bin/openssl/s_client.c index c73a5fd38f0..21454c5bf3c 100644 --- a/usr.bin/openssl/s_client.c +++ b/usr.bin/openssl/s_client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_client.c,v 1.24 2015/11/21 16:03:06 jca Exp $ */ +/* $OpenBSD: s_client.c,v 1.25 2015/11/21 16:04:20 jca Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -365,7 +365,7 @@ s_client_main(int argc, char **argv) long socket_mtu = 0; if (single_execution) { - if (pledge("stdio inet rpath wpath cpath tty dns", NULL) == -1) { + if (pledge("stdio inet dns rpath wpath cpath tty", NULL) == -1) { perror("pledge"); exit(1); } |