diff options
author | 2017-06-11 14:38:52 +0000 | |
---|---|---|
committer | 2017-06-11 14:38:52 +0000 | |
commit | 44ae82ebecc6dccce7ccfb512a7d5328a463ea11 (patch) | |
tree | 3e7db3ed01b35883b769760e81ed39e81c2bb07f | |
parent | Do not issue the message "no blank before trailing delimiter" for .No. (diff) | |
download | wireguard-openbsd-44ae82ebecc6dccce7ccfb512a7d5328a463ea11.tar.xz wireguard-openbsd-44ae82ebecc6dccce7ccfb512a7d5328a463ea11.zip |
Continue the flattening of the pledge logic started in r1.184 and place
a blank space somewhere else.
suggested by and ok jsing
-rw-r--r-- | usr.bin/nc/netcat.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/nc/netcat.c b/usr.bin/nc/netcat.c index b759e319a79..0d972ee53e7 100644 --- a/usr.bin/nc/netcat.c +++ b/usr.bin/nc/netcat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netcat.c,v 1.185 2017/06/11 10:53:07 tb Exp $ */ +/* $OpenBSD: netcat.c,v 1.186 2017/06/11 14:38:52 tb Exp $ */ /* * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> * Copyright (c) 2015 Bob Beck. All rights reserved. @@ -350,11 +350,11 @@ main(int argc, char *argv[]) if (family == AF_UNIX) { if (pledge("stdio rpath wpath cpath tmppath unix", NULL) == -1) err(1, "pledge"); - } else if (Fflag) { - if (Pflag) { - if (pledge("stdio inet dns sendfd tty", NULL) == -1) - err(1, "pledge"); - } else if (pledge("stdio inet dns sendfd", NULL) == -1) + } else if (Fflag && Pflag) { + if (pledge("stdio inet dns sendfd tty", NULL) == -1) + err(1, "pledge"); + } else if (Fflag) { + if (pledge("stdio inet dns sendfd", NULL) == -1) err(1, "pledge"); } else if (Pflag && usetls) { if (pledge("stdio rpath inet dns tty", NULL) == -1) @@ -507,8 +507,8 @@ main(int argc, char *argv[]) tls_config_insecure_noverifyname(tls_cfg); if (TLSopt & TLS_NOVERIFY) { if (tls_expecthash != NULL) - errx(1, "-H and -T noverify may not be used" - " together"); + errx(1, "-H and -T noverify may not be used " + "together"); tls_config_insecure_noverifycert(tls_cfg); } if (TLSopt & TLS_MUSTSTAPLE) |