version 1.124, 2001/06/07 20:23:05 |
version 1.125, 2001/06/22 23:35:21 |
|
|
{ |
{ |
int i, opt, optind, exit_status, ok; |
int i, opt, optind, exit_status, ok; |
u_short fwd_port, fwd_host_port; |
u_short fwd_port, fwd_host_port; |
char *optarg, *cp, buf[256]; |
char *optarg, *p, *cp, buf[256]; |
struct stat st; |
struct stat st; |
struct passwd *pw; |
struct passwd *pw; |
int dummy; |
int dummy; |
|
|
if (av[optind][0] != '-') { |
if (av[optind][0] != '-') { |
if (host) |
if (host) |
break; |
break; |
if ((cp = strchr(av[optind], '@'))) { |
if (strchr(av[optind], '@')) { |
if(cp == av[optind]) |
p = xstrdup(av[optind]); |
|
cp = strchr(p, '@'); |
|
if(cp == NULL || cp == p) |
usage(); |
usage(); |
options.user = av[optind]; |
options.user = p; |
*cp = '\0'; |
*cp = '\0'; |
host = ++cp; |
host = ++cp; |
} else |
} else |