Relax -C pledge to unbreak shelling out in interactive mode
authorkn <kn@openbsd.org>
Sat, 23 Dec 2023 23:03:00 +0000 (23:03 +0000)
committerkn <kn@openbsd.org>
Sat, 23 Dec 2023 23:03:00 +0000 (23:03 +0000)
commit8ca43f867673bd45b2904926fce16e83b98ada75
tree9396e2cf83852d474d0b559c2e3d8ca3076d0c8d
parent9c72bbc06238953bda4c348f2ff21dafc7457450
Relax -C pledge to unbreak shelling out in interactive mode

r1.69 introduced -C in 2008 "to continue multiple transfers";
'ftp -C ftp://ftp.eu.openbsd.org/' lands in "ftp> " and turns "mget"
into "reget" by default.

r1.139 -C/resume without "proc exec" thusly was too strict.
Instead, now after recent cleanups/tweaks, prevent execution with -o.

OK millert
usr.bin/ftp/main.c