| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
(lack of sleep)
|
|
|
|
|
| |
connection at the end of operation, so it not leave opened
file without a reason.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
FTP error return code because
1) They return NULL, it means that ftpErrno can't be used because
it takes file pointer
2) They don't have FILE-type argument as f.e. ftpGet/ftpPut to use
it for ftpErrno instead.
For that functions I add yet one int* type argument to store
FTP error return code. It is impossible to add some global variable
for that reason, because user can have multiply FTP connections
opened at the same time.
So, interface changed, major number bumped.
Userland changes will follows.
Minor bugfixes, the code:
Forget to close file in few places, when failure occurse
Forget to NULL cached host name, multiply free is possible
|
|
|
|
|
|
| |
at the same time, so add new con_state to avoid QUIT recursion
Still should go to 2.2
|
|
|
|
|
|
|
|
| |
send QUIT to closed connection.
2) Preserve login failure code, don't overwrite it with ftp_close
code
Should go to 2.2
|
|
|
|
| |
Submitted-By: Archie Cobbs <archie@whistle.com>
|
| |
|
|
|
|
|
|
|
| |
Major version bumped (by me) since the ftpGet() public interface has
changed (an "int *" becomes and "off_t *")
Submitted by: Jason Thorpe <thorpej@nas.nasa.gov>, PR#1640
|
|
|
|
|
|
|
| |
use it.
Correct a typo bogon that had REST mistyped as RETR. No wonder fetch's
restart command didn't work! :-(
|
| |
|
| |
|
|
|
|
|
| |
be zero'd only if the operation *fails*, indicating that the file
starting offset is effectively zero. This makes more sense.
|
|
|
|
|
| |
codes.
Submitted-By: Archie Cobbs <archie@whistle.com>
|
|
|
|
|
|
| |
2. Remove pkg_* support - tcl7.5's channel interface has rendered this
almost entirely unsupportable (at least in the way it currently stands).
Submitted-By: jmz & jkh
|
|
|
|
| |
Submitted by: jmz
|
|
|
|
|
|
|
| |
Add -Wall to CFLAGS
ftpio.h:
It's ftpGetModTime, not ftpModTime
|
| |
|
| |
|
|
|
|
| |
ftpAscii() call sets connection to ascii as counterpart to ftpBinary().
|
| |
|
|
|
|
|
|
| |
This will do as a stop-gap until I figure out a more fault-tolerant
way of having deferred closes against the control connection work
without blocking.
|
| |
|
|
|
|
| |
Make ftpChdir return the server status again - it was more convenient.
|
|
|
|
|
|
| |
from jmz was a hopeless kludge (sorry Jean-Marc :) and handled the problem
in the wrong way. ftpRestart() has now gone away and ftpGet() has grown a
new parameter.
|
|
|
|
|
| |
(the convention as established by pkg_install(1)), select passive mode
FTP automatically.
|
| |
|
|
packages and also sort of give the (correct) impression that this basically
sits on top of stdio and deals with stream pointers (FILE*).
|