Do not drop into "ftp> " shell when piping to stdandard output
authorkn <kn@openbsd.org>
Wed, 22 Nov 2023 02:16:20 +0000 (02:16 +0000)
committerkn <kn@openbsd.org>
Wed, 22 Nov 2023 02:16:20 +0000 (02:16 +0000)
commitd62663423d5fc0f7bbbe439b13127ba0ff69469d
treed6c00bc773906da59fb22349d584c26743861b18
parent6e363ec32f1bd7717731a081df2c911ff150b7e3
Do not drop into "ftp> " shell when piping to stdandard output

'-o -' is orthogonal to an interactive prompt, yet some (malformed) URLs
such as ftp://host/ would still end up there;  exit after processing the
first file/URL to prevent this.

sthen deraadt agree
OK millert
usr.bin/ftp/main.c