summaryrefslogtreecommitdiffstats
path: root/net/data
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-23 19:42:26 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-23 19:42:26 +0000
commit3a4f359fc1413e816423d137e7dc67abd8db5921 (patch)
tree21698a3038483f4dcd4bc30cbc1fdb336ccf5972 /net/data
parente2b292c0c84c0d3c1ac68d032927fb62b3aa25f2 (diff)
downloadchromium_src-3a4f359fc1413e816423d137e7dc67abd8db5921.zip
chromium_src-3a4f359fc1413e816423d137e7dc67abd8db5921.tar.gz
chromium_src-3a4f359fc1413e816423d137e7dc67abd8db5921.tar.bz2
Fix recognizing FTP listings consisting of only one line.
It turns out we have to be a little more strict with that. Before this change both ls and VMS listing parsers would claim that they recognize the format. Also fallback to Mozilla code was broken in that case. TEST=Covered by net_unittests. BUG=28263 Review URL: http://codereview.chromium.org/421006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32831 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/data')
-rw-r--r--net/data/ftp/dir-listing-ls-51
-rw-r--r--net/data/ftp/dir-listing-ls-5.expected8
2 files changed, 9 insertions, 0 deletions
diff --git a/net/data/ftp/dir-listing-ls-5 b/net/data/ftp/dir-listing-ls-5
new file mode 100644
index 0000000..87c4266
--- /dev/null
+++ b/net/data/ftp/dir-listing-ls-5
@@ -0,0 +1 @@
+drwxrwsr-x 4 501 501 4096 Feb 20 2007 pub
diff --git a/net/data/ftp/dir-listing-ls-5.expected b/net/data/ftp/dir-listing-ls-5.expected
new file mode 100644
index 0000000..3acbcf3
--- /dev/null
+++ b/net/data/ftp/dir-listing-ls-5.expected
@@ -0,0 +1,8 @@
+d
+pub
+-1
+2007
+2
+20
+0
+0