[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.200 and 1.201

version 1.200, 2020/04/03 05:53:52 version 1.201, 2020/08/03 02:43:41
Line 2316 
Line 2316 
         extern char *__progname;          extern char *__progname;
   
         fprintf(stderr,          fprintf(stderr,
             "usage: %s [-46aCfNpqrv] [-B buffer_size] [-b batchfile] [-c cipher]\n"              "usage: %s [-46AaCfNpqrv] [-B buffer_size] [-b batchfile] [-c cipher]\n"
             "          [-D sftp_server_path] [-F ssh_config] [-i identity_file]\n"              "          [-D sftp_server_path] [-F ssh_config] [-i identity_file]\n"
             "          [-J destination] [-l limit] [-o ssh_option] [-P port]\n"              "          [-J destination] [-l limit] [-o ssh_option] [-P port]\n"
             "          [-R num_requests] [-S program] [-s subsystem | sftp_server]\n"              "          [-R num_requests] [-S program] [-s subsystem | sftp_server]\n"
Line 2351 
Line 2351 
         args.list = NULL;          args.list = NULL;
         addargs(&args, "%s", ssh_program);          addargs(&args, "%s", ssh_program);
         addargs(&args, "-oForwardX11 no");          addargs(&args, "-oForwardX11 no");
         addargs(&args, "-oForwardAgent no");  
         addargs(&args, "-oPermitLocalCommand no");          addargs(&args, "-oPermitLocalCommand no");
         addargs(&args, "-oClearAllForwardings yes");          addargs(&args, "-oClearAllForwardings yes");
   
Line 2359 
Line 2358 
         infile = stdin;          infile = stdin;
   
         while ((ch = getopt(argc, argv,          while ((ch = getopt(argc, argv,
             "1246afhNpqrvCc:D:i:l:o:s:S:b:B:F:J:P:R:")) != -1) {              "1246AafhNpqrvCc: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 'A':
                 case '4':                  case '4':
                 case '6':                  case '6':
                 case 'C':                  case 'C':
Line 2460 
Line 2460 
                         usage();                          usage();
                 }                  }
         }          }
   
           /* Do this last because we want the user to be able to override it */
           addargs(&args, "-oForwardAgent no");
   
         if (!isatty(STDERR_FILENO))          if (!isatty(STDERR_FILENO))
                 showprogress = 0;                  showprogress = 0;

Legend:
Removed from v.1.200  
changed lines
  Added in v.1.201