From 298f3af6c61055b5bc2dacfdf8726ab61519bea6 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sun, 10 Aug 2008 10:30:34 +0200 Subject: [PATCH] 1041: Do not show the "Error parsing" on ftp://sunsite.icm.edu.pl/. --- src/protocol/ftp/ftp.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/protocol/ftp/ftp.c b/src/protocol/ftp/ftp.c index ca5b6f4a8..b3cc8c7a4 100644 --- a/src/protocol/ftp/ftp.c +++ b/src/protocol/ftp/ftp.c @@ -1328,7 +1328,14 @@ ftp_process_dirlist(struct cache_entry *cached, off_t *pos, } } else { - ERROR("Error parsing: [%.*s]", line_length, buf); + struct string string; + + if (!init_string(&string)) return ret; + add_bytes_to_string(&string, buf, line_length); + add_char_to_string(&string, '\n'); + add_fragment(cached, *pos, string.source, string.length); + *pos += string.length; + done_string(&string); } } }