diff options
author | Ross Lagerwall <rosslagerwall@gmail.com> | 2015-02-28 12:57:39 +0000 |
---|---|---|
committer | Ross Lagerwall <rosslagerwall@gmail.com> | 2015-03-08 09:06:36 +0000 |
commit | c2546d4732c97c46d4c1a826b1b2c84855587ea4 (patch) | |
tree | e8749bc84d6951ce7230b24787942354184cc04a /daemon/ParseFTPList.c | |
parent | 57caa7fad4bc4532366f557b5eda95357a23b101 (diff) | |
download | gvfs-c2546d4732c97c46d4c1a826b1b2c84855587ea4.tar.gz |
ftp: Fix dir listing for windows long dates
Fix from upstream:
http://hg.mozilla.org/mozilla-central/rev/e10a2ca070e6
https://bugzilla.mozilla.org/show_bug.cgi?id=1061898
https://bugzilla.gnome.org/show_bug.cgi?id=601583
Diffstat (limited to 'daemon/ParseFTPList.c')
-rw-r--r-- | daemon/ParseFTPList.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/ParseFTPList.c b/daemon/ParseFTPList.c index 6d171fd3..c0031c5f 100644 --- a/daemon/ParseFTPList.c +++ b/daemon/ParseFTPList.c @@ -729,7 +729,7 @@ int ParseFTPList(const char *line, struct list_state *state, * "07-21-00 01:19PM 52275 Name Plate.jpg" * "07-14-00 01:38PM 2250540 Valentineoffprank-HiRes.jpg" */ - if ((numtoks >= 4) && toklen[0] == 8 && toklen[1] == 7 && + if ((numtoks >= 4) && (toklen[0] == 8 || toklen[0] == 10) && toklen[1] == 7 && (*tokens[2] == '<' || isdigit(*tokens[2])) ) { p = tokens[0]; |