From ec6e76abc6b01e1c341d84558bcdb4ed223cbbf4 Mon Sep 17 00:00:00 2001 From: Robey Pointer Date: Mon, 10 Jul 2006 00:00:03 -0700 Subject: [PATCH] [project @ robey@lag.net-20060710070003-b9c4a1a7f7ab0ae9] apparently some sftp servers may return an mtime of 0xffffffff -- just in case, ignore that value --- paramiko/sftp_attr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paramiko/sftp_attr.py b/paramiko/sftp_attr.py index 3bc69fe..6a861b5 100644 --- a/paramiko/sftp_attr.py +++ b/paramiko/sftp_attr.py @@ -200,7 +200,7 @@ class SFTPAttributes (object): else: ks = '?---------' # compute display date - if self.st_mtime is None: + if (self.st_mtime is None) or (self.st_mtime == 0xffffffff): # shouldn't really happen datestr = '(unknown date)' else: