summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2015-11-21 16:04:21 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2015-11-21 16:04:21 +0000
commit2f473631a5ba9bbd7ae3b97170d985fd7a233d8d (patch)
treea18ddc401ce9133f950249db7ab298874e218ed4 /usr.bin
parent10169188ab327e414cb6c515bebeb82a962eaeda (diff)
In pledge(), put "dns" right after "inet".
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/openssl/openssl.c4
-rw-r--r--usr.bin/openssl/s_client.c4
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);
}