comparison scp.c @ 571:281ed8384eb4

- Remove options that dbclient won't know about
author Matt Johnston <matt@ucc.asn.au>
date Wed, 02 Sep 2009 15:17:14 +0000
parents 910c2da71235
children cf5a167776c3
comparison
equal deleted inserted replaced
570:fb9a341e4454 571:281ed8384eb4
341 break; 341 break;
342 case 'P': 342 case 'P':
343 addargs(&args, "-p%s", optarg); 343 addargs(&args, "-p%s", optarg);
344 break; 344 break;
345 case 'B': 345 case 'B':
346 addargs(&args, "-oBatchmode yes"); 346 fprintf(stderr, "Note: -B option is disabled in this version of scp");
347 break; 347 break;
348 case 'l': 348 case 'l':
349 speed = strtod(optarg, &endp); 349 speed = strtod(optarg, &endp);
350 if (speed <= 0 || *endp != '\0') 350 if (speed <= 0 || *endp != '\0')
351 usage(); 351 usage();
490 if (src) { /* remote to remote */ 490 if (src) { /* remote to remote */
491 freeargs(&alist); 491 freeargs(&alist);
492 addargs(&alist, "%s", ssh_program); 492 addargs(&alist, "%s", ssh_program);
493 if (verbose_mode) 493 if (verbose_mode)
494 addargs(&alist, "-v"); 494 addargs(&alist, "-v");
495 #if 0
496 // Disabled since dbclient won't understand them
497 // and scp works fine without them.
495 addargs(&alist, "-x"); 498 addargs(&alist, "-x");
496 addargs(&alist, "-oClearAllForwardings yes"); 499 addargs(&alist, "-oClearAllForwardings yes");
497 addargs(&alist, "-n"); 500 addargs(&alist, "-n");
501 #endif
498 502
499 *src++ = 0; 503 *src++ = 0;
500 if (*src == 0) 504 if (*src == 0)
501 src = "."; 505 src = ".";
502 host = strrchr(argv[i], '@'); 506 host = strrchr(argv[i], '@');