make parsing user@host consistently look for the last '@' in the
authordjm <djm@openbsd.org>
Fri, 6 Sep 2024 02:30:44 +0000 (02:30 +0000)
committerdjm <djm@openbsd.org>
Fri, 6 Sep 2024 02:30:44 +0000 (02:30 +0000)
commit93d5c99663b69aee95d1db6853737d705470b596
tree21e99e2a01e238838ca84ae7614b4b894f38de5a
parent6e684d59638e1fc53a096aaa9258c45fdc76ca9b
make parsing user@host consistently look for the last '@' in the
string rather than the first. This makes it possible to use usernames
that contain '@' characters.

Prompted by Max Zettlmeißl; feedback/ok millert@
usr.bin/ssh/match.c
usr.bin/ssh/ssh-add.c