summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjca <jca@openbsd.org>2015-11-04 17:54:06 +0000
committerjca <jca@openbsd.org>2015-11-04 17:54:06 +0000
commit2796abfa15536e455651448d9a11c3c64e079d59 (patch)
tree52366751a17f854761d38139e05976bcf5d3a9d5
parentBump distribution tarball versions. (diff)
downloadwireguard-openbsd-2796abfa15536e455651448d9a11c3c64e079d59.tar.xz
wireguard-openbsd-2796abfa15536e455651448d9a11c3c64e079d59.zip
Fix inverted pledge requests, from Frederic Nowak
-rw-r--r--usr.bin/ftp/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/ftp/main.c b/usr.bin/ftp/main.c
index 6fa66f18fbe..fd7b1a1d227 100644
--- a/usr.bin/ftp/main.c
+++ b/usr.bin/ftp/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.104 2015/10/18 03:39:37 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.105 2015/11/04 17:54:06 jca Exp $ */
/* $NetBSD: main.c,v 1.24 1997/08/18 10:20:26 lukem Exp $ */
/*
@@ -444,21 +444,21 @@ main(volatile int argc, char *argv[])
if (isurl(argv[0])) {
if (pipeout) {
#ifndef SMALL
- if (pledge("stdio rpath dns tty inet fattr",
+ if (pledge("stdio rpath dns tty inet proc exec fattr",
NULL) == -1)
err(1, "pledge");
#else
- if (pledge("stdio rpath dns tty inet proc exec fattr",
+ if (pledge("stdio rpath dns tty inet fattr",
NULL) == -1)
err(1, "pledge");
#endif
} else {
#ifndef SMALL
- if (pledge("stdio rpath wpath cpath dns tty inet fattr",
+ if (pledge("stdio rpath wpath cpath dns tty inet proc exec fattr",
NULL) == -1)
err(1, "pledge");
#else
- if (pledge("stdio rpath wpath cpath dns tty inet proc exec fattr",
+ if (pledge("stdio rpath wpath cpath dns tty inet fattr",
NULL) == -1)
err(1, "pledge");
#endif