diff options
author | Klemens Nanni <kn@cvs.openbsd.org> | 2023-11-22 02:20:55 +0000 |
---|---|---|
committer | Klemens Nanni <kn@cvs.openbsd.org> | 2023-11-22 02:20:55 +0000 |
commit | 85d40efe0b5cbbe0dbcb3e2f6b276d3bc932ec4b (patch) | |
tree | 67034a979f92af355e3b22366b0418019413b7dd | |
parent | fd74e2a4a4d53268c3f4f710270d051542aeaf8f (diff) |
Piping single file to standard out needs no "proc exec"
'-o -' now means no "ftp> " shell, so no "|some cmd" files, "!some cmd" or
"page" commands.
OK millert
-rw-r--r-- | usr.bin/ftp/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ftp/main.c b/usr.bin/ftp/main.c index 2a62fbaa896..75d184e4115 100644 --- a/usr.bin/ftp/main.c +++ b/usr.bin/ftp/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.140 2023/11/22 02:16:20 kn Exp $ */ +/* $OpenBSD: main.c,v 1.141 2023/11/22 02:20:54 kn Exp $ */ /* $NetBSD: main.c,v 1.24 1997/08/18 10:20:26 lukem Exp $ */ /* @@ -618,7 +618,7 @@ main(volatile int argc, char *argv[]) if (pipeout) { #ifndef SMALL if (!resume) { - if (pledge("stdio rpath dns tty inet proc exec fattr", + if (pledge("stdio rpath dns tty inet fattr", NULL) == -1) err(1, "pledge"); } else |