From 3cce3394e0654bf11f38332e5685eec3dc37c87b Mon Sep 17 00:00:00 2001 From: markus Date: Tue, 4 Jan 2000 09:07:59 +0000 Subject: 'ssh @host' is illegal (null user name), from karsten@gedankenpolizei.de --- usr.bin/ssh/ssh.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.bin/ssh/ssh.c') diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c index e4d48b5438d..ca99f2818e5 100644 --- a/usr.bin/ssh/ssh.c +++ b/usr.bin/ssh/ssh.c @@ -11,7 +11,7 @@ */ #include "includes.h" -RCSID("$Id: ssh.c,v 1.37 2000/01/04 00:08:00 markus Exp $"); +RCSID("$Id: ssh.c,v 1.38 2000/01/04 09:07:59 markus Exp $"); #include "xmalloc.h" #include "ssh.h" @@ -227,6 +227,8 @@ main(int ac, char **av) if (host) break; if ((cp = strchr(av[optind], '@'))) { + if(cp == av[optind]) + usage(); options.user = av[optind]; *cp = '\0'; host = ++cp; -- cgit v1.2.3-59-g8ed1b