Jonas Fonseca
ba66ff37db
Simplify TESTDEPS maintainance by adding common objects in Makefile.lib
2007-05-26 14:04:29 +02:00
Jonas Fonseca
8bfab2242e
Fix 'make test' dependency when building test utility programs
...
Problems was caused by undefined symbols:
src/util/conv.c:308: undefined reference to `is_cp_utf8'
src/util/conv.c:320: undefined reference to `cp2u'
2007-05-26 13:46:12 +02:00
Kalle Olavi Niemitalo
049cc9c6b3
Bug 941: Survive an unexpected number of 227 or 229 FTP responses.
...
And document the functions a little.
[ From commit 71ff470f2e
in ELinks
0.11.2.GIT. --KON ]
2007-04-12 01:02:00 +03:00
Kalle Olavi Niemitalo
62bdfcf732
ftp: Decode strftime results from the system codepage.
2007-03-20 21:34:39 +02:00
Kalle Olavi Niemitalo
ef1d6c563d
ftp: Collect HTML formatting parameters into a structure.
2007-03-20 21:30:20 +02:00
Kalle Olavi Niemitalo
c8eccc486b
ftp: Allocate a larger buffer for the timestamp string.
2007-03-20 21:28:30 +02:00
Kalle Olavi Niemitalo
9d45ff5be1
ftp: Don't pad the timestamp column with spaces.
2007-03-20 21:26:46 +02:00
Kalle Olavi Niemitalo
c6b8fa7151
ftp, add_file_cmd_to_str: Check errors from string functions.
...
Use goto for error handling. Free all strings in the same place.
2007-03-18 09:32:47 +02:00
Kalle Olavi Niemitalo
adfde652b9
Reject CR and LF characters in FTP pathnames.
2007-03-18 08:53:56 +02:00
Witold Filipczyk
3f4de99f16
ftp: ftp didn't handle filenames with spaces.
2007-03-18 08:15:54 +02:00
Kalle Olavi Niemitalo
01fdf6c4d3
Bug 923: Added comments about potential time_t truncation.
...
And removed Miciah's portability question; MSVC++2005 already
has a time_t longer than long, so assuming that time_t is long
is surely not portable.
2007-01-13 15:26:21 +02:00
Jonas Fonseca
7589d4457a
Bug 899: Fix size handling in FTP directory listings
...
This fixes parse_ftp_number to use off_t instead of long to store its
(intermediate) result and return type. It also introduces an OFFT_MAX type
"limit" that is used for validating the size of the parsed number.
A test-case for was added in 37c9bf3f75
to
test-ftp-parser and the patch has been confirmed to fix the test-case by
adamg and me. This closes bug 899, which is a duplicate of debian bug
403139.
2006-12-18 18:51:57 +01:00
Jonas Fonseca
37c9bf3f75
Test response from server mentioned in debian bug 403139
...
The problem is in the FTP directory listing and number parser which stores
it intermediate results in a variable of type long.
2006-12-15 22:36:53 +01:00
Witold Filipczyk
8615cb529e
Added output parameter to the get_filesize_from_RETR. It indicates
...
whether we ought to add the conn->progress->start to
the conn->est_length. Currently displaying resuming works correctly with
ftp.task.gda.pl and ftp.pld-linux.org.
2006-08-19 09:11:53 +02:00
Witold Filipczyk
77470526ba
vsftpd shows total filesize, so I commented out addition.
...
I know that this is not correct for every server.
Show me ftp sites, where resuming displays wrong filesize.
2006-08-19 00:06:04 +02:00
Witold Filipczyk
2e818771d0
Made directory listings XML compliant
2006-07-31 13:24:39 +02:00
Laurent MONIN
b6e6ac96a3
ftp_process_dirlist(): re-introduce else { ERROR() } part, just drop
...
#ifdef/#endif.
2006-06-10 01:28:35 +02:00
Laurent MONIN
de2264f712
ftp_process_dirlist(): minor test optiization.
2006-06-10 01:12:38 +02:00
Laurent MONIN
6960fc8feb
ftp_process_dirlist(): drop stale debug code, spotted by Miciah.
2006-06-10 00:58:50 +02:00
Miciah Dashiel Butler Masters
14595404d1
ftp_process_dirlist: Rename local variable bufp to line_length.
2006-06-09 21:46:47 +00:00
Miciah Dashiel Butler Masters
71ec83c0de
ftp_get_line: Reflow some code.
2006-06-09 21:43:36 +00:00
Miciah Dashiel Butler Masters
2d49225db3
ftp_get_line: Reflow some code.
2006-06-09 21:43:18 +00:00
Miciah Dashiel Butler Masters
e1ea1cf2bb
ftp_get_line: Don't update *@len if returning -1.
2006-06-09 21:42:16 +00:00
Miciah Dashiel Butler Masters
ea5b06c329
ftp_process_dirlist: Drop a silly comment.
2006-06-09 21:39:51 +00:00
Miciah Dashiel Butler Masters
4122a97a03
Factor ftp_get_line out of ftp_process_dirlist.
...
Per Quiznos's suggestion.
2006-06-09 21:38:06 +00:00
Miciah Dashiel Butler Masters
585f7c5f2b
ftp_process_dirlist: check for bufl == 0 earlier.
2006-06-09 20:17:57 +00:00
Miciah Dashiel Butler Masters
dafc209c61
Simplify ftp_process_dirlist via memchr.
2006-06-09 20:16:35 +00:00
Witold Filipczyk
1fc28980d7
Parsing filesize on ftp.task.gda.pl
2006-03-16 22:13:40 +01:00
Jonas Fonseca
1735f96a87
FTP, NNTP: Normalize the cache entry before setting the connection state
...
... so it is normalized when the download callbacks are called.
2006-02-08 20:45:15 +01:00
Jonas Fonseca
4de26051b9
Ignore test files
2006-01-31 22:23:22 +01:00
Jonas Fonseca
94f4b2fd1d
DIRLIST: Cleanup macros used in the FTP directory listing
2006-01-30 01:29:40 +01:00
Jonas Fonseca
b567f6a5db
DIRLIST: Use directory listing initializer in the FTP protocol module
2006-01-30 01:25:30 +01:00
Jonas Fonseca
ba3e4a611d
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-21 23:38:15 +01:00
d18809522e
Make elinks tcc (tiny C compiler) friendly.
...
If you want to try tcc use CC=tcc ./configure and make LD=tcc.
I built ELinks with tcc, but ELinks segfaults.
2006-01-21 21:33:23 +01:00
Jonas Fonseca
91e8fdf34b
Fix the EPLF FTP parser test to run FreeBSD
2006-01-21 08:28:57 +01:00
Jonas Fonseca
2748d043f9
Autogenerate .vimrc files and put the master in config/vimrc
...
This changes the init target to be idempotent: most importantly it will now
never overwrite a Makefile if it exists. Additionally 'make init' will
generate the .vimrc files. Yay, no more stupid 'added fairies' commits! ;)
2006-01-15 18:38:58 +01:00
Jonas Fonseca
3e202cd2ef
Include osdep/stat.h to get S_* macros
2006-01-12 03:26:58 +01:00
Laurent MONIN
88de36b8d2
Use mode_t and mode macros everywhere.
2006-01-10 23:36:06 +01:00
Laurent MONIN
9b88da873a
Use mode_t and mode macros everywhere.
2006-01-10 23:35:22 +01:00
Jonas Fonseca
215d7ec158
Append memdebug to test dependencies in Makefile.lib
2006-01-06 22:11:45 +01:00
Laurent MONIN
88730120ba
Define EL_PF_INET and EL_PF_INET6 to identify protocol in use instead
...
of numeric values.
2006-01-04 18:06:53 +01:00
Laurent MONIN
8b7657deaf
Use PF_* instead of AF_* as first parameter of socket(2).
2006-01-04 00:32:58 +01:00
Jonas Fonseca
146ca09c43
Improve support for running 'make test' when srcdir != builddir
...
Additionally, also make TESTDEPS conditionally contain memdebug object
binary only if CONFIG_DEBUG is yes.
2006-01-03 19:04:17 +01:00
Laurent MONIN
0c9d2c5a6f
Let ftp-parser displays usage information when called with no arg or
...
empty string, instead of core dump in debug mode.
2006-01-03 13:33:11 +01:00
Jonas Fonseca
5c091720f7
Sort TESTDEPS
2006-01-03 01:55:26 +01:00
Jonas Fonseca
c1eb5aa24f
Also test parsing of EPLF FTP reponses
2006-01-03 01:55:18 +01:00
Jonas Fonseca
feb076a84a
Add the ftp-parser test program
2006-01-03 01:32:43 +01:00
Jonas Fonseca
513c06f2d0
Remove last remains of the built-in FTP parser testing
2006-01-03 01:30:46 +01:00
Jonas Fonseca
90a1440c03
Make a test-ftp-parser test script and remove the 'built-in' one
2006-01-03 01:28:44 +01:00
Laurent MONIN
df065ead80
Remove now useless $Id: lines.
2005-10-21 09:14:07 +02:00