| Index: net/ftp/ftp_directory_listing_parser_ls.cc
|
| diff --git a/net/ftp/ftp_directory_listing_parser_ls.cc b/net/ftp/ftp_directory_listing_parser_ls.cc
|
| index 038af116ccbb3bd95196e2a24d983bc9591dcc0b..8e7eee83632fe9830bfd5e64d80b0d264df16ae1 100644
|
| --- a/net/ftp/ftp_directory_listing_parser_ls.cc
|
| +++ b/net/ftp/ftp_directory_listing_parser_ls.cc
|
| @@ -140,8 +140,15 @@ bool FtpDirectoryListingParserLs::ConsumeLine(const string16& line) {
|
| entry.type = FtpDirectoryListingEntry::FILE;
|
| }
|
|
|
| - if (!base::StringToInt64(columns[2 + column_offset], &entry.size))
|
| - return false;
|
| + if (!base::StringToInt64(columns[2 + column_offset], &entry.size)) {
|
| + // Some FTP servers do not separate owning group name from file size,
|
| + // like "group1234". We still want to display the file name for that entry,
|
| + // but can't really get the size (What if the group is named "group1",
|
| + // and the size is in fact 234? We can't distinguish between that
|
| + // and "group" with size 1234). Use a dummy value for the size.
|
| + // TODO(phajdan.jr): Use a value that means "unknown" instead of 0 bytes.
|
| + entry.size = 0;
|
| + }
|
| if (entry.size < 0)
|
| return false;
|
| if (entry.type != FtpDirectoryListingEntry::FILE)
|
|
|