diff options
author | Klemens Nanni <kn@cvs.openbsd.org> | 2023-11-30 14:52:01 +0000 |
---|---|---|
committer | Klemens Nanni <kn@cvs.openbsd.org> | 2023-11-30 14:52:01 +0000 |
commit | 959fcc70f8f223eebf68bb6cba61634efcb2e230 (patch) | |
tree | d77bd9fa14a1a4cd0d24ce1816940ffe576a28d7 /usr.bin | |
parent | 112043bbf35a2683ef36bbcb2416eec8f5b0359c (diff) |
Single file to stdout without "fattr"
Regardless of SMALL and other command flags, 'ftp -o - URL [file|URL ...]'
only processes the first URL and exists.
Only standard output is written to and modifying 'struct stat' properties
as per pledge(2) "fattr" don't apply.
OK millert
Diffstat (limited to 'usr.bin')
-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 93dd47a0b83..53e588efef2 100644 --- a/usr.bin/ftp/main.c +++ b/usr.bin/ftp/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.142 2023/11/30 14:51:32 kn Exp $ */ +/* $OpenBSD: main.c,v 1.143 2023/11/30 14:52:00 kn Exp $ */ /* $NetBSD: main.c,v 1.24 1997/08/18 10:20:26 lukem Exp $ */ /* @@ -616,7 +616,7 @@ main(volatile int argc, char *argv[]) if (argc > 0) { if (isurl(argv[0])) { if (pipeout) { - if (pledge("stdio rpath dns tty inet fattr", + if (pledge("stdio rpath dns tty inet", NULL) == -1) err(1, "pledge"); } else { |