sftp: Don't attempt to complete arguments for non-existent commands
authordjm <djm@openbsd.org>
Fri, 16 Sep 2022 03:13:34 +0000 (03:13 +0000)
committerdjm <djm@openbsd.org>
Fri, 16 Sep 2022 03:13:34 +0000 (03:13 +0000)
commitfbd6bc21c7048d4cb148adf8711e396750ce8378
treea54042659579b2712e896f5f320efa9d70a06acd
parentf7cabdec391f1d65c4d4b1c24c3a24ac573cee1f
sftp: Don't attempt to complete arguments for non-existent commands

If user entered a non-existent command (e.g. because they made a
typo) there is no point in trying to complete its arguments. Skip
calling complete_match() if that's the case.

From Michal Privoznik
usr.bin/ssh/sftp.c