diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-16 07:39:55 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-16 07:39:55 +0000 |
commit | 86e9fe46687bf4b4d607e8b33a54d530e3d95c4e (patch) | |
tree | 510fcd427c192263844ddd159ec9f486a671c866 /net/data | |
parent | 08f42e7193c00c18cb2bfb28aa1e4958c8e08fdd (diff) | |
download | chromium_src-86e9fe46687bf4b4d607e8b33a54d530e3d95c4e.zip chromium_src-86e9fe46687bf4b4d607e8b33a54d530e3d95c4e.tar.gz chromium_src-86e9fe46687bf4b4d607e8b33a54d530e3d95c4e.tar.bz2 |
FTP: Compatibility fix for "ls -l" style directory listing parser.
Some servers, for example smallftpd, add an empty line
at the end of the listing. We should not fail on those.
I think this bug was introduced in 2009 by http://codereview.chromium.org/449011
Now we have more test cases, and this change shouldn't introduce
new compatibility problems.
BUG=72060
TEST=net_unittests
Review URL: http://codereview.chromium.org/6515009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75079 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/data')
-rw-r--r-- | net/data/ftp/dir-listing-ls-24 | 2 | ||||
-rw-r--r-- | net/data/ftp/dir-listing-ls-24.expected | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/net/data/ftp/dir-listing-ls-24 b/net/data/ftp/dir-listing-ls-24 new file mode 100644 index 0000000..acb09a8 --- /dev/null +++ b/net/data/ftp/dir-listing-ls-24 @@ -0,0 +1,2 @@ +drwxr-xr-x 33 ftp ftp 4096 Aug 12 2008 note_empty_line_below
+
diff --git a/net/data/ftp/dir-listing-ls-24.expected b/net/data/ftp/dir-listing-ls-24.expected new file mode 100644 index 0000000..c46afa2 --- /dev/null +++ b/net/data/ftp/dir-listing-ls-24.expected @@ -0,0 +1,8 @@ +d +note_empty_line_below +-1 +2008 +8 +12 +0 +0 |