summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2011-04-02 21:00:45 +0200
committerJulian Andres Klode <jak@debian.org>2011-04-02 21:00:45 +0200
commit3a1f49c42aae17c23d52486db21fb7c05734dbd2 (patch)
tree84b731c18fe3aacd4fef72d4004e3af70cadf32c /apt-pkg
parentf71c0f2e83d849b85c795a2a4a0056d265abf904 (diff)
apt-pkg/acquire-item.cc: Use stat buffer if stat was
successful, not if it failed (Closes: #620546)
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/acquire-item.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc
index 2ecb8ed6e..184802ca3 100644
--- a/apt-pkg/acquire-item.cc
+++ b/apt-pkg/acquire-item.cc
@@ -841,7 +841,7 @@ string pkgAcqIndex::Custom600Headers()
if (ShortDesc().find("Translation") != 0)
msg += "\nFail-Ignore: true";
struct stat Buf;
- if (stat(Final.c_str(),&Buf) != 0)
+ if (stat(Final.c_str(),&Buf) == 0)
msg += "\nLast-Modified: " + TimeRFC1123(Buf.st_mtime);
return msg;