summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2015-11-04 17:54:07 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2015-11-04 17:54:07 +0000
commit038b6993f2eb486056997bacb3a6abcd0d672397 (patch)
tree210a4cf2facf9870c9936aa41694a32c67f39e1f /usr.bin
parentf53d580746657d0ef8cff2c338d5020928cd7520 (diff)
Fix inverted pledge requests, from Frederic Nowak
Diffstat (limited to 'usr.bin')
-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