summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/scp.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* move #include <dirent.h> out of includes.h; ok markus@stevesk2006-02-081-1/+3
|
* "scp a b c" shouldn't clobber "c" when it is not a directory, report anddjm2006-01-311-2/+2
| | | | fix from biorn@; ok markus@
* fix local arbitrary command execution vulnerability on local/local anddjm2006-01-311-45/+87
| | | | | remote/remote copies (CVE-2006-0225, bz #1094), patch by t8m AT centrum.cz, polished by dtucker@ and myself; ok markus@
* Add support for tun(4) forwarding over OpenSSH, based on an idea andreyk2005-12-061-1/+2
| | | | | | | | | | | | initial channel code bits by markus@. This is a simple and easy way to use OpenSSH for ad hoc virtual private network connections, e.g. administrative tunnels or secure wireless access. It's based on a new ssh channel and works similar to the existing TCP forwarding support, except that it depends on the tun(4) network interface on both ends of the connection for layer 2 or layer 3 tunneling. This diff also adds support for LocalCommand in the ssh(1) client. ok djm@, markus@, jmc@ (manpages), tested and discussed with others
* avoid close(-1), as in rcp; ok cloderderaadt2005-11-121-4/+10
|
* ensure that stdio fds are attached; ok deraadt@djm2005-09-131-1/+4
|
* Silence bogus -Wuninitialized warnings; ok djm@dtucker2005-07-271-2/+2
|
* make this -Wsign-compare clean; ok avsm@ markus@djm2005-06-171-5/+5
|
* If copying multiple files to a target file (which normally fails, as itavsm2005-05-261-4/+6
| | | | | | must be a target directory), kill the spawned ssh child before exiting. This stops it trying to authenticate and spewing lots of output. deraadt@ ok
* Switch atomicio to use a simpler interface; it now returns a size_tavsm2005-05-241-12/+14
| | | | | | | | | | | (containing number of bytes read/written), and indicates error by returning 0. EOF is signalled by errno==EPIPE. Typical use now becomes: if (atomicio(read, ..., len) != len) err(1,"read"); ok deraadt@, cloder@, djm@
* since ssh has xstrdup, use it instead of strdup+test. unbreaks -Werror builddjm2005-04-021-4/+2
|
* copy argv[] element instead of smashing the one that ps will see; ok ottoderaadt2005-03-311-5/+8
|
* Have scp and sftp wait for the spawned ssh to exit before they exitdtucker2005-01-241-2/+4
| | | | | | | themselves. This prevents ssh from being unable to restore terminal modes (not normally a problem on OpenBSD but common with -Portable on POSIX platforms). From peak at argo.troja.mff.cuni.cz (bz#950); ok djm@ markus@
* scratch that do { } while (0) wrapper in this casederaadt2004-09-151-2/+2
|
* use atomicio instead of homegrown equivalents or read/write.avsm2004-08-111-6/+3
| | | | markus@ ok
* Prevent scp from skipping the file following a double-error.dtucker2004-07-081-3/+7
| | | | bz #863, ok markus@
* make ssh -Wshadow clean, no functional changesavsm2004-06-211-5/+5
| | | | markus@ ok
* limit trust between local and remote rcp/scp process,markus2004-04-011-1/+9
| | | | noticed by lcamtuf; ok deraadt@, djm@
* from portable: rename clashing variable limit-> limit_rate; ok markus@djm2003-11-231-6/+6
|
* unexpand and delete whitespace at EOL; ok markus@djm2003-11-211-2/+2
|
* When called with -q, pass -q to ssh; suppresses SSH2 banner. ok markus@dtucker2003-11-121-1/+2
|
* scp and sftp: add options list and sort options. options list requestedjmc2003-10-081-3/+3
| | | | | | | | | by deraadt@ sshd: use same format as ssh ssh: remove wrong option from list sftp-server: Subsystem is documented in ssh_config(5), not sshd(8) ok deraadt@ markus@
* error handling for remote-remote copy; #638; report Harald Koenig;markus2003-09-191-2/+3
| | | | ok millert, fgs, henning, deraadt
* userid is unsigned, but well, force it anyways; andrushock@korovino.netderaadt2003-07-181-2/+2
|
* deal with typing of write vs read in atomicioderaadt2003-06-281-18/+18
|
* Typo.nino2003-06-121-2/+2
| | | | Ok markus@.
* kill ssh process upon receipt of signal, bz #241.djm2003-06-041-2/+14
| | | | based on patch from esb AT hawaii.edu; ok markus@
* ansify; ok markus@djm2003-06-041-28/+11
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-031-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* fix memory leaks; from dlheine@suif.Stanford.EDU/CLOUSEAU; ok djm@markus2003-03-051-3/+7
|
* call okname() only when using system(3) for remote-remote copy;markus2003-02-021-8/+15
| | | | fixes bugs #483, #472; ok deraadt@, mouring@
* scp -12; Sam Smith and others; ok provos@, deraadt@markus2003-01-231-3/+5
|
* bandwidth limitation patch (scp -l) from niels@; ok todd@, deraadt@markus2003-01-231-4/+76
|
* Don't ftruncate after write error, creating sparse files of incorrect lengthdjm2003-01-101-2/+2
| | | | mindrot bug #403, reported by rusr@cup.hp.com; ok markus@
* sftp progress meter support.fgsch2003-01-101-178/+10
| | | | | original diffs by Nils Nordman <nino at nforced dot com> via markus@, merged to -current by me, djm@ ok.
* 1) include stalling time in total timemarkus2002-12-131-30/+35
| | | | | | | 2) truncate filenames to 45 instead of 20 characters 3) print rate instead of progress bar, no more stars 4) scale output to tty width based on a patch from Niels; ok fries@ lebel@ fgs@ millert@
* use roundup() similar to rcp/util.c and avoid problems with strangemarkus2002-12-051-5/+3
| | | | filesystem block sizes, noted by tjr@freebsd.org; ok djm@
* allow usernames with embedded '@', e.g. scp user@vhost@realhost:file /tmp;markus2002-11-271-5/+5
| | | | http://bugzilla.mindrot.org/show_bug.cgi?id=447; ok mouring@, millert@
* Remove unnecessary fflush(stderr) calls, stderr is unbuffered by default.wcobb2002-11-261-2/+1
| | | | ok markus@
* check exit status from ssh, and exit(1) if ssh fails; bug#369; binder@arago.demarkus2002-11-071-3/+26
|
* KNF done automatically while reading....deraadt2002-06-191-2/+2
|
* make usage like man pagederaadt2002-06-171-4/+4
|
* remove FallBackToRshmarkus2002-06-081-4/+2
|
* Fixes potental double // within path.mouring2002-04-061-2/+2
| | | | http://bugzilla.mindrot.org/show_bug.cgi?id=76
* stretch bannersderaadt2002-03-301-6/+9
|
* make it compile with more strict prototype checkingitojun2001-12-051-3/+3
|
* skip filenames containing \n; report jdamery@chiark.greenend.org.ukmarkus2001-10-011-1/+6
| | | | and matthew@debian.org
* add ClearAllForwardings ssh option and set it in scp and sftp; ok markus@stevesk2001-09-191-6/+11
|
* add -Fssh_config option; ok markus@stevesk2001-09-171-5/+6
|
* don't forward agent for non third-party copies; ok markus@stevesk2001-09-121-1/+2
|