[BACK]Return to sftp.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/sftp.c between version 1.198 and 1.199

version 1.198, 2020/02/26 11:46:51 version 1.199, 2020/04/03 04:34:15
Line 2328 
Line 2328 
 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;
Line 2359 
Line 2359 
         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':
Line 2423 
Line 2423 
                 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;
Line 2460 
Line 2463 
   
         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);
   

Legend:
Removed from v.1.198  
changed lines
  Added in v.1.199