summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/sftp.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Implement sftp upload resume support.logan2014-04-211-15/+23
| | | | | OK from djm@, with input from guenther@, mlarkin@ and okan@
* unsigned casts for ctype macros where neccessaryderaadt2013-11-201-2/+2
| | | | ok guenther millert markus
* tweak previous;jmc2013-10-171-2/+2
|
* fsync@openssh.com protocol extension for sftp-serverdjm2013-10-171-25/+40
| | | | | | client support to allow calling fsync() faster successful transfer patch mostly by imorgan AT nas.nasa.gov; bz#1798 "fine" markus@ "grumble OK" deraadt@ "doesn't sound bad to me" millert@
* make ^w match ksh behaviour (delete previous word instead of entire line)djm2013-08-311-1/+3
|
* enable ctrl-left-arrow and ctrl-right-arrow to move forward/back a word;djm2013-08-091-1/+6
| | | | matching ksh's relatively recent change.
* do getopt parsing for all sftp commands (with an empty optstring fordjm2013-08-091-1/+29
| | | | commands without arguments) to ensure consistent behaviour
* add a "-l" flag for the rename command to force it to use the sillydjm2013-08-081-3/+32
| | | | | | | standard SSH_FXP_RENAME command instead of the POSIX-rename- like posix-rename@openssh.com extension. intended for use in regress tests, so no documentation.
* fix two year old regression: symlinking a file would incorrectlydjm2013-08-081-2/+3
| | | | canonicalise the target path. bz#2129 report from delphij AT freebsd.org
* sort -a;jmc2013-08-071-2/+2
|
* fix some whitespace at EOLdjm2013-08-061-52/+54
| | | | | | make list of commands an enum rather than a long list of defines add -a to usage()
* sftp support for resuming partial downloads; patch mostly by Loganadendjm2013-07-251-26/+50
| | | | | Velvindron/AfriNIC with some tweaks by me; feedback and ok dtucker@ "Just be careful" deraadt@
* fix pointer-signedness warnings from clang/llvm-3.3; "seems nice" deraadt@djm2013-07-121-2/+3
|
* Make sftp's libedit interface marginally multibyte aware by building up thedtucker2013-06-041-5/+11
| | | | | quoted string by character instead of by byte. Prevents failures when linked against a libedit built with wide character support (bz#1990). "looks ok" djm
* bye, bye xfree(); ok markus@djm2013-05-171-48/+44
|
* Fix some "unused result" warnings found via clang and -portable. ok markus@dtucker2013-05-161-2/+2
|
* make "sftp -q" do what it says on the sticker: hush everything but errors;djm2013-04-181-10/+24
| | | | ok dtucker@
* fix NULL deref when built without libedit and control charactersdjm2013-02-081-2/+2
| | | | | entered as command; debugging and patch from Iain Morgan an Loganaden Velvindron in bz#1956
* fix signed vs unsigned warning; feedback & ok: djm@markus2012-10-051-2/+2
|
* Fix handling of filenames containing escaped globbing characters and escapedtucker2012-09-211-4/+16
| | | | "#" and "*". Patch from Jean-Marc Robert via tech@, ok djm.
* Fix improper handling of absolute paths when PWD is part of the completeddtucker2012-09-211-3/+6
| | | | path. Patch from Jean-Marc Robert via tech@, ok djm.
* Add bounds check on sftp tab-completion. Part of a patch from from Jean-Marcdtucker2012-09-181-1/+5
| | | | Robert via tech@, ok djm
* an XXX for laterdjm2012-09-171-1/+2
|
* Remove unused variable leftover from tab-completion changes.dtucker2012-06-221-3/+2
| | | | From Steve.McClellan at radisys com, ok markus@
* setlinebuf(3) is more readable than setvbuf(.., _IOLBF, ...)djm2012-04-201-3/+3
|
* Don't leak list in complete_cmd_parse if there are no commands found.oga2011-11-161-2/+4
| | | | | | Discovered when I was ``borrowing'' this code for something else. ok djm@
* don't let remote_glob() implicitly sort its results in do_globbed_ls() -djm2011-09-221-2/+3
| | | | in all likelihood, they will be resorted anyway
* add a protocol extension to support a hard link operation. It isdjm2010-12-041-10/+43
| | | | | | | available through the "ln" command in the client. The old "ln" behaviour of creating a symlink is available using its "-s" option or through the preexisting "symlink" command; based on a patch from miklos AT szeredi.hu in bz#1555; ok markus@
* escape '[' in filename tab-completion; fix a type while there.sthen2010-10-231-2/+3
| | | | ok djm@
* use default shell /bin/sh if $SHELL is ""; ok markus@djm2010-10-051-2/+2
|
* when performing an "ls" in columnated (short) mode, only calldjm2010-09-261-10/+8
| | | | | ioctl(TIOCGWINSZ) once to get the window width instead of per- filename
* make use of new glob(3) GLOB_KEEPSTAT extension to save extra serverdjm2010-09-251-37/+19
| | | | rountrips to fetch per-file stat(2) information.
* add [-l limit] to usage();jmc2010-09-231-2/+2
|
* add an option per-read/write callback to atomiciodjm2010-09-221-3/+12
| | | | | | | | | factor out bandwidth limiting code from scp(1) into a generic bandwidth limiter that can be attached using the atomicio callback mechanism add a bandwidth limit option to sftp(1) using the above "very nice" markus@
* unbreak ls in working directories that contains globbing characters indjm2010-06-181-2/+2
| | | | their pathnames. bz#1655 reported by vgiffin AT apple.com
* restore mput and mget which got lost in the tab-completion changes.dtucker2010-05-051-1/+3
| | | | found by Kenneth Whitaker, ok djm@
* add missing "p" flag to getopt optstring;djm2010-01-271-2/+2
| | | | bz#1704 from imorgan AT nas.nasa.gov
* Reset SIGTERM to SIG_DFL before executing ssh, so that even if sftpguenther2010-01-151-2/+4
| | | | | | | inherited SIGTERM as ignored it will still be able to kill the ssh it starts. ok dtucker@
* sftp.1: put ls -h in the right placejmc2010-01-131-4/+4
| | | | | | | sftp.c: as above, plus add -p to get/put, and shorten their arg names to keep the help usage nicely aligned ok djm
* don't append a space after inserting a completion of a directory (i.e.djm2010-01-131-6/+3
| | | | a path ending in '/') for a slightly better user experience; ok dtucker@
* support '-h' (human-readable units) for sftp's ls command, just likedjm2010-01-131-17/+22
| | | | ls(1); ok dtucker@
* Prevent sftp from derefing a null pointer when given a "-" without a command.dtucker2010-01-091-5/+6
| | | | | Also, allow whitespace to follow a "-". bz#1691, path from Colin Watson via Debian. ok djm@ deraadt@
* Fix two warnings: possibly used unitialized and use a nul byte instead ofdtucker2010-01-081-3/+3
| | | | NULL pointer. ok djm@
* Implement tab-completion of commands, local and remote filenames for sftp.djm2010-01-041-50/+434
| | | | | | | | | Hacked on and off for some time by myself, mouring, Carlos Silva (via 2009 Google Summer of Code) and polished to a fine sheen by myself again. It should deal more-or-less correctly with the ikky corner-cases presented by quoted filenames, but the UI could still be slightly improved. In particular, it is quite slow for remote completion on large directories. bz#200; ok markus@
* When passing user-controlled options with arguments to other programs,guenther2009-12-201-2/+4
| | | | | | | | | | | | pass the option and option argument as separate argv entries and not smashed into one (e.g., as -l foo and not -lfoo). Also, always pass a "--" argument to stop option parsing, so that a positional argument that starts with a '-' isn't treated as an option. This fixes some error cases as well as the handling of hostnames and filenames that start with a '-'. Based on a diff by halex@ ok halex@ djm@ deraadt@
* fix potential divide-by-zero in sftp's "df" output when talking to a serverdtucker2009-12-061-4/+4
| | | | | that reports zero files on the filesystem (Unix filesystems always have at least the root inode). From Steve McClellan at radisys, ok djm@
* make passing of zero-length arguments to ssh safe byhalex2009-11-221-2/+3
| | | | | | passing "-<switch>" "<value>" rather than "-<switch><value>" ok dtucker@, guenther@, djm@
* bz#1588 change "Connecting to host..." message to "Connected to host."djm2009-11-201-19/+21
| | | | | | and delay it until after the sftp protocol connection has been established. Avoids confusing sequence of messages when the underlying ssh connection experiences problems. ok dtucker@
* recursive transfer support for get/put and on the commandlinedjm2009-08-181-106/+111
| | | | | work mostly by carlosvsilvapt@gmail.com for the Google Summer of Code with some tweaks by me; "go for it" deraadt@
* sync synopsis and usage();jmc2009-08-131-3/+5
|