CVSROOT: /cvs Module name: src Changes by: schwa...@cvs.openbsd.org 2025/05/05 10:32:22
Modified files: usr.bin/ftp : fetch.c Log message: When auto-fetching files: 1. Error out when a command line argument that is supposed to specify a URL does not contain a colon, rather than silently ignoring all subsequent arguments including the bad one and reporting spurious success. This can only happen for a bad argument following a valid URL argument. 2. The check whether the "host" part of a URL is empty was ineffective. Move it after cutting off the directory part to make it actually work, and let it print a meaningful error message. Issue 1 reported by Henrich Hartzer <h at hartzer dot sh> on tech@. Issue 2 found in my audit of the function triggered by the report. OK tedu@, and deraadt@ is "not worried"