Return to ssh.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.187, 2002/11/21 23:04:33 | version 1.188, 2002/11/27 17:53:35 | ||
---|---|---|---|
|
|
||
av += optind; | av += optind; | ||
if (ac > 0 && !host && **av != '-') { | if (ac > 0 && !host && **av != '-') { | ||
if (strchr(*av, '@')) { | if (strrchr(*av, '@')) { | ||
p = xstrdup(*av); | p = xstrdup(*av); | ||
cp = strchr(p, '@'); | cp = strrchr(p, '@'); | ||
if (cp == NULL || cp == p) | if (cp == NULL || cp == p) | ||
usage(); | usage(); | ||
options.user = p; | options.user = p; |