The manpage claims the -a option uses getlogin(2), so do so. Also,
authorguenther <guenther@openbsd.org>
Sun, 20 Jul 2014 04:07:16 +0000 (04:07 +0000)
committerguenther <guenther@openbsd.org>
Sun, 20 Jul 2014 04:07:16 +0000 (04:07 +0000)
commite6283523f873c9dcf718d9266fb1d43c630be8a4
tree20d6c788985b4a7b54a83c774735a0000abd23f4
parent0f9614064a973e7cf040f75a575f9bfb235dcb2d
The manpage claims the -a option uses getlogin(2), so do so.  Also,
ignore its value if it returns a user that doesn't exit
usr.bin/telnet/commands.c