summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2008-10-28 16:52:55 +0000
committerCosimo Cecchi <cosimoc@src.gnome.org>2008-10-28 16:52:55 +0000
commit965978b95114a43039d09931dbba53d39e8e22b0 (patch)
treef2859511f2b49738dd88433da4212d0a79fcdab3 /daemon
parent7e73ffef5bed453556ee987514444546294d8de7 (diff)
downloadgvfs-965978b95114a43039d09931dbba53d39e8e22b0.tar.gz
Convert stuct tm from what ParseFTPList gives to what mktime expects.
2008-10-28 Cosimo Cecchi <cosimoc@gnome.org> * daemon/gvfsbackendftp.c: (dir_default_init_data): Convert stuct tm from what ParseFTPList gives to what mktime expects. Fixes wrong date/time parsing for FTP files. Patch by Andreas Henriksson (#550837). svn path=/trunk/; revision=2078
Diffstat (limited to 'daemon')
-rw-r--r--daemon/gvfsbackendftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/gvfsbackendftp.c b/daemon/gvfsbackendftp.c
index 3a3d789e..7bfc2525 100644
--- a/daemon/gvfsbackendftp.c
+++ b/daemon/gvfsbackendftp.c
@@ -946,7 +946,7 @@ dir_default_init_data (FtpConnection *conn, const FtpFile *dir)
ftp_connection_send (conn,
RESPONSE_PASS_100 | RESPONSE_FAIL_200,
- "LIST");
+ (conn->system == FTP_SYSTEM_UNIX) ? "LIST -a" : "LIST");
}
static GFileInfo *