[gvfs] ftp: Fix dir listing for windows long dates



commit c2546d4732c97c46d4c1a826b1b2c84855587ea4
Author: Ross Lagerwall <rosslagerwall gmail com>
Date:   Sat Feb 28 12:57:39 2015 +0000

    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

 daemon/ParseFTPList.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/daemon/ParseFTPList.c b/daemon/ParseFTPList.c
index 6d171fd..c0031c5 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];


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]