diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-11-05 10:30:43 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-11-05 10:30:43 +0000 |
| commit | 4797b0e72dc8de97a04670f66a98a249065052fc (patch) | |
| tree | f02201df487cd117bcdd444f6ac484e87e4990fb /src/FtpConnection.cc | |
| parent | 7513095042eab655db052a7d2b2d0a934fc68261 (diff) | |
2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Handle date before epoch.
To create *bad* Time object, call Time::null().
* src/CookieParser.cc
* src/FtpConnection.cc
* src/FtpConnection.h
* src/FtpNegotiationCommand.cc
* src/RequestGroup.cc
* src/TimeA2.cc
* src/TimeA2.h
* test/CookieParserTest.cc
* test/FtpConnectionTest.cc
* test/TimeTest.cc
Diffstat (limited to 'src/FtpConnection.cc')
| -rw-r--r-- | src/FtpConnection.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FtpConnection.cc b/src/FtpConnection.cc index 916c3dfa..60f24db3 100644 --- a/src/FtpConnection.cc +++ b/src/FtpConnection.cc @@ -369,7 +369,7 @@ unsigned int FtpConnection::receiveMdtmResponse(Time& time) if(strlen(buf) == 14) { time = Time::parse(buf, "%Y%m%d%H%M%S"); } else { - time.setTimeInSec(-1); + time = Time::null(); } } return response.first; |
