version 1.198, 2020/02/26 11:46:51 |
version 1.199, 2020/04/03 04:34:15 |
|
|
int |
int |
main(int argc, char **argv) |
main(int argc, char **argv) |
{ |
{ |
int in, out, ch, err, tmp, port = -1; |
int in, out, ch, err, tmp, port = -1, noisy = 0; |
char *host = NULL, *user, *cp, *file2 = NULL; |
char *host = NULL, *user, *cp, *file2 = NULL; |
int debug_level = 0; |
int debug_level = 0; |
char *file1 = NULL, *sftp_server = NULL; |
char *file1 = NULL, *sftp_server = NULL; |
|
|
infile = stdin; |
infile = stdin; |
|
|
while ((ch = getopt(argc, argv, |
while ((ch = getopt(argc, argv, |
"1246afhpqrvCc:D:i:l:o:s:S:b:B:F:J:P:R:")) != -1) { |
"1246afhNpqrvCc:D:i:l:o:s:S:b:B:F:J:P:R:")) != -1) { |
switch (ch) { |
switch (ch) { |
/* Passed through to ssh(1) */ |
/* Passed through to ssh(1) */ |
case '4': |
case '4': |
|
|
case 'f': |
case 'f': |
global_fflag = 1; |
global_fflag = 1; |
break; |
break; |
|
case 'N': |
|
noisy = 1; /* Used to clear quiet mode after getopt */ |
|
break; |
case 'p': |
case 'p': |
global_pflag = 1; |
global_pflag = 1; |
break; |
break; |
|
|
|
|
if (!isatty(STDERR_FILENO)) |
if (!isatty(STDERR_FILENO)) |
showprogress = 0; |
showprogress = 0; |
|
|
|
if (noisy) |
|
quiet = 0; |
|
|
log_init(argv[0], ll, SYSLOG_FACILITY_USER, 1); |
log_init(argv[0], ll, SYSLOG_FACILITY_USER, 1); |
|
|