summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/scp.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* spelling in comment; ok djm@stevesk2008-10-101-2/+2
|
* Prevent -Wsign-compare warnings on LP64 systems. bz #1192, ok deraadt@dtucker2008-06-131-3/+8
|
* If scp -p encounters a pre-epoch timestamp, use the epoch which isdtucker2008-01-011-3/+9
| | | | | as close as we can get given that it's used unsigned. Add a little debugging while there. bz #828, ok djm@
* factor out network read/write into an atomicio()-like function, and use itdjm2007-10-241-27/+63
| | | | | | | to handle short reads, apply bandwidth limits and update counters. make network IO non-blocking, so a small trickle of reads/writes has a chance of updating the progress meter; bz #799 ok dtucker@
* the ellipsis is not an optional argument; while here, sync the usagesobrado2007-08-061-2/+2
| | | | | | | | and synopsis of commands lots of good ideas by jmc@ ok jmc@
* don't ftruncate() non-regular files; bz#1236 reported by wood AT xmission.com;djm2007-06-131-2/+3
| | | | ok dtucker@
* Encode filename with strnvis if the name contains a newline (which can'tdtucker2007-06-121-7/+7
| | | | be represented in the scp protocol), from bz #891. ok markus@
* make scp try to skip FIFOs rather than blocking when nothing is listening.djm2007-06-121-2/+3
| | | | | | depends on the platform supporting sane O_NONBLOCK semantics for open on FIFOs (apparently POSIX does not mandate this), which OpenBSD does. bz #856; report by cjwatson AT debian.org; ok markus@
* fix detection of whether we should show progress meter or not: scpdjm2007-01-221-2/+2
| | | | | | tested isatty(stderr) but wrote the progress meter to stdout. This patch makes it test stdout. bz#1265 reported by junkmail AT bitsculpture.com; of dtucker@
* almost entirely get rid of the culture of ".h files that include .h files"deraadt2006-08-031-4/+3
| | | | | ok djm, sort of ok stevesk makes the pain stop in one easy step
* move #include <stdio.h> out of includes.hstevesk2006-08-011-1/+2
|
* move #include <stdlib.h> out of includes.hstevesk2006-07-261-1/+2
|
* move #include <sys/param.h> out of includes.hstevesk2006-07-261-1/+2
|
* move #include <sys/time.h> out of includes.hstevesk2006-07-251-1/+2
|
* move #include <string.h> out of includes.hstevesk2006-07-221-1/+2
|
* move #include <time.h> out of includes.hstevesk2006-07-221-1/+2
|
* move #include <unistd.h> out of includes.hstevesk2006-07-171-1/+2
|
* move #include <errno.h> out of includes.h; ok markus@stevesk2006-07-111-1/+2
|
* move #include <stdarg.h> out of includes.h; ok markus@stevesk2006-07-101-1/+2
|
* duplicate argv at the start of main() because it gets modified later;djm2006-07-101-3/+9
| | | | pointed out by deraadt@ ok markus@
* move #include <fcntl.h> out of includes.hstevesk2006-07-091-1/+2
|
* move #include <pwd.h> out of includes.h; ok markus@stevesk2006-07-061-1/+2
|
* fix leak; coverity via Kylene Jo Hallmarkus2006-05-171-2/+4
|
* xasprintification; ok deraadt@djm2006-04-011-9/+3
|
* minimal lint cleanup (unused crud, and some size_t); ok djmderaadt2006-04-011-9/+11
|
* Put $OpenBSD$ tags back (as comments) to replace the RCSID()s thatdjm2006-03-251-0/+1
| | | | Theo nuked - our scripts to sync -portable need them in the files
* change OpenSSH's xrealloc() function from being xrealloc(p, new_size) todjm2006-03-251-1/+1
| | | | | | | | 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@
* RCSID() can diederaadt2006-03-191-1/+0
|
* Try to display errormessage even if remout == -1biorn2006-03-161-10/+10
| | | | ok djm@, markus@
* move #include <ctype.h> out of includes.h; ok djm@stevesk2006-02-221-1/+2
|
* move #include <sys/stat.h> out of includes.h; ok markus@stevesk2006-02-201-1/+2
|
* move #include <signal.h> out of includes.h; ok markus@stevesk2006-02-201-1/+2
|
* move #include <sys/wait.h> out of includes.h; ok markus@stevesk2006-02-101-1/+4
|
* 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