From badfdcdc6ea4f1b2823c05c0901b836d6aa6b1c1 Mon Sep 17 00:00:00 2001 From: "phajdan.jr@chromium.org" Date: Mon, 4 Nov 2013 19:58:16 +0000 Subject: FTP: fix parsing of busybox-generated directory listings The Bad test removed here was first introduced in https://codereview.chromium.org/3327025 . It turns out we just need to accept more time formats. BUG=312080 R=wtc@chromium.org Review URL: https://codereview.chromium.org/56663002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232770 0039d316-1c4b-4281-b951-d872f2087c98 --- net/data/ftp/dir-listing-ls-32 | 13 +++++ net/data/ftp/dir-listing-ls-32.expected | 98 +++++++++++++++++++++++++++++++++ 2 files changed, 111 insertions(+) create mode 100644 net/data/ftp/dir-listing-ls-32 create mode 100644 net/data/ftp/dir-listing-ls-32.expected (limited to 'net/data') diff --git a/net/data/ftp/dir-listing-ls-32 b/net/data/ftp/dir-listing-ls-32 new file mode 100644 index 0000000..aa21f24 --- /dev/null +++ b/net/data/ftp/dir-listing-ls-32 @@ -0,0 +1,13 @@ + +total 1 +drwxrwxr-x 1 500 244 660 Jan 1 00:0 bin +drwxr-xr-x 1 0 0 0 Jan 1 00:0 dev +drwxrwxr-x 1 500 244 272 Jan 1 00:0 etc +drwxrwxr-x 1 500 244 16 Jan 1 00:0 mnt +drwxrwxr-x 1 500 244 0 Jan 1 00:0 nfs +dr-xr-xr-x 50 0 0 0 Jan 1 00:0 proc +drwxrwxrwx 1 0 0 0 Jan 1 00:0 ram +drwxrwxr-x 1 500 244 296 Jan 1 00:0 sbin +lrwxrwxrwx 1 500 244 7 Jan 1 00:0 tmp -> ram/tmp +drwxrwxr-x 1 500 244 16 Jan 1 00:0 usr +lrwxrwxrwx 1 500 244 7 Jan 1 00:0 var -> ram/var diff --git a/net/data/ftp/dir-listing-ls-32.expected b/net/data/ftp/dir-listing-ls-32.expected new file mode 100644 index 0000000..ac54545 --- /dev/null +++ b/net/data/ftp/dir-listing-ls-32.expected @@ -0,0 +1,98 @@ +d +bin +-1 +1994 +1 +1 +0 +0 + +d +dev +-1 +1994 +1 +1 +0 +0 + +d +etc +-1 +1994 +1 +1 +0 +0 + +d +mnt +-1 +1994 +1 +1 +0 +0 + +d +nfs +-1 +1994 +1 +1 +0 +0 + +d +proc +-1 +1994 +1 +1 +0 +0 + +d +ram +-1 +1994 +1 +1 +0 +0 + +d +sbin +-1 +1994 +1 +1 +0 +0 + +l +tmp +-1 +1994 +1 +1 +0 +0 + +d +usr +-1 +1994 +1 +1 +0 +0 + +l +var +-1 +1994 +1 +1 +0 +0 -- cgit v1.1