summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/scp.c
AgeCommit message (Collapse)Author
2006-07-17move #include <unistd.h> out of includes.hKevin Steves
2006-07-11move #include <errno.h> out of includes.h; ok markus@Kevin Steves
2006-07-10move #include <stdarg.h> out of includes.h; ok markus@Kevin Steves
2006-07-10duplicate argv at the start of main() because it gets modified later;Damien Miller
pointed out by deraadt@ ok markus@
2006-07-09move #include <fcntl.h> out of includes.hKevin Steves
2006-07-06move #include <pwd.h> out of includes.h; ok markus@Kevin Steves
2006-05-17fix leak; coverity via Kylene Jo HallMarkus Friedl
2006-04-01xasprintification; ok deraadt@Damien Miller
2006-04-01minimal lint cleanup (unused crud, and some size_t); ok djmTheo de Raadt
2006-03-25Put $OpenBSD$ tags back (as comments) to replace the RCSID()s thatDamien Miller
Theo nuked - our scripts to sync -portable need them in the files
2006-03-25change OpenSSH's xrealloc() function from being xrealloc(p, new_size) toDamien Miller
xrealloc(p, new_nmemb, new_itemsize). realloc is particularly prone to integer overflows because it is almost always allocating "n * size" bytes, so this is a far safer API; ok deraadt@
2006-03-19RCSID() can dieTheo de Raadt
2006-03-16Try to display errormessage even if remout == -1Bjorn Sandell
ok djm@, markus@
2006-02-22move #include <ctype.h> out of includes.h; ok djm@Kevin Steves
2006-02-20move #include <sys/stat.h> out of includes.h; ok markus@Kevin Steves
2006-02-20move #include <signal.h> out of includes.h; ok markus@Kevin Steves
2006-02-10move #include <sys/wait.h> out of includes.h; ok markus@Kevin Steves
2006-02-08move #include <dirent.h> out of includes.h; ok markus@Kevin Steves
2006-01-31"scp a b c" shouldn't clobber "c" when it is not a directory, report andDamien Miller
fix from biorn@; ok markus@
2006-01-31fix local arbitrary command execution vulnerability on local/local andDamien Miller
remote/remote copies (CVE-2006-0225, bz #1094), patch by t8m AT centrum.cz, polished by dtucker@ and myself; ok markus@
2005-12-06Add support for tun(4) forwarding over OpenSSH, based on an idea andReyk Floeter
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
2005-11-12avoid close(-1), as in rcp; ok cloderTheo de Raadt
2005-09-13ensure that stdio fds are attached; ok deraadt@Damien Miller
2005-07-27Silence bogus -Wuninitialized warnings; ok djm@Darren Tucker
2005-06-17make this -Wsign-compare clean; ok avsm@ markus@Damien Miller
2005-05-26If copying multiple files to a target file (which normally fails, as itAnil Madhavapeddy
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
2005-05-24Switch atomicio to use a simpler interface; it now returns a size_tAnil Madhavapeddy
(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@
2005-04-02since ssh has xstrdup, use it instead of strdup+test. unbreaks -Werror buildDamien Miller
2005-03-31copy argv[] element instead of smashing the one that ps will see; ok ottoTheo de Raadt
2005-01-24Have scp and sftp wait for the spawned ssh to exit before they exitDarren Tucker
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@
2004-09-15scratch that do { } while (0) wrapper in this caseTheo de Raadt
2004-08-11use atomicio instead of homegrown equivalents or read/write.Anil Madhavapeddy
markus@ ok
2004-07-08Prevent scp from skipping the file following a double-error.Darren Tucker
bz #863, ok markus@
2004-06-21make ssh -Wshadow clean, no functional changesAnil Madhavapeddy
markus@ ok
2004-04-01limit trust between local and remote rcp/scp process,Markus Friedl
noticed by lcamtuf; ok deraadt@, djm@
2003-11-23from portable: rename clashing variable limit-> limit_rate; ok markus@Damien Miller
2003-11-21unexpand and delete whitespace at EOL; ok markus@Damien Miller
2003-11-12When called with -q, pass -q to ssh; suppresses SSH2 banner. ok markus@Darren Tucker
2003-10-08scp and sftp: add options list and sort options. options list requestedJason McIntyre
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@
2003-09-19error handling for remote-remote copy; #638; report Harald Koenig;Markus Friedl
ok millert, fgs, henning, deraadt
2003-07-18userid is unsigned, but well, force it anyways; andrushock@korovino.netTheo de Raadt
2003-06-28deal with typing of write vs read in atomicioTheo de Raadt
2003-06-12Typo.Nils Nordman
Ok markus@.
2003-06-04kill ssh process upon receipt of signal, bz #241.Damien Miller
based on patch from esb AT hawaii.edu; ok markus@
2003-06-04ansify; ok markus@Damien Miller
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-03-05fix memory leaks; from dlheine@suif.Stanford.EDU/CLOUSEAU; ok djm@Markus Friedl
2003-02-02call okname() only when using system(3) for remote-remote copy;Markus Friedl
fixes bugs #483, #472; ok deraadt@, mouring@
2003-01-23scp -12; Sam Smith and others; ok provos@, deraadt@Markus Friedl
2003-01-23bandwidth limitation patch (scp -l) from niels@; ok todd@, deraadt@Markus Friedl