version 1.40, 2004/01/21 03:07:59 |
version 1.41, 2004/01/27 10:08:10 |
|
|
userhost = xstrdup(argv[optind]); |
userhost = xstrdup(argv[optind]); |
file2 = argv[optind+1]; |
file2 = argv[optind+1]; |
|
|
if ((cp = colon(userhost)) != NULL) { |
|
*cp++ = '\0'; |
|
file1 = cp; |
|
} |
|
|
|
if ((host = strrchr(userhost, '@')) == NULL) |
if ((host = strrchr(userhost, '@')) == NULL) |
host = userhost; |
host = userhost; |
else { |
else { |
|
|
usage(); |
usage(); |
} |
} |
addargs(&args, "-l%s",userhost); |
addargs(&args, "-l%s",userhost); |
|
} |
|
|
|
if ((cp = colon(host)) != NULL) { |
|
*cp++ = '\0'; |
|
file1 = cp; |
} |
} |
|
|
host = cleanhostname(host); |
host = cleanhostname(host); |