version 1.32, 2002/11/27 17:53:35 |
version 1.33, 2003/01/08 23:53:26 |
|
|
int |
int |
main(int argc, char **argv) |
main(int argc, char **argv) |
{ |
{ |
int in, out, ch; |
int in, out, ch, err; |
pid_t sshpid; |
pid_t sshpid; |
char *host, *userhost, *cp, *file2; |
char *host, *userhost, *cp, *file2; |
int debug_level = 0, sshver = 2; |
int debug_level = 0, sshver = 2; |
|
|
&sshpid); |
&sshpid); |
} |
} |
|
|
interactive_loop(in, out, file1, file2); |
err = interactive_loop(in, out, file1, file2); |
|
|
close(in); |
close(in); |
close(out); |
close(out); |
|
|
fatal("Couldn't wait for ssh process: %s", |
fatal("Couldn't wait for ssh process: %s", |
strerror(errno)); |
strerror(errno)); |
|
|
exit(0); |
exit(err == 0 ? 0 : 1); |
} |
} |