Filenames containing spaces are incorrectly rejected and a usage message is printed. And the usage message is also incorrect (the usage message is for the "interactive" mode, and is wront for command-line usage). Reproducible: Always Steps to Reproduce: $ atftp -g -l /dev/null -r 'foo bar' 10.0.0.99 Usage: get remote_file [local_file]
Created attachment 233995 [details, diff] Patch to correctly handle filenames containing spaces when passed on command-line This patch fixes the problem for filenames passed on the command line. It doesn't fix the problem for filenames entered in interactive mode. In interactive mode the design flaw is a bit more fundamental and would require replacing the argz lib with something else.
The fix has been integrated into net-ftp/atftp-0.7-r2