]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire-item.cc
apt-pkg/acquire-item.cc: Use stat buffer if stat was
[apt.git] / apt-pkg / acquire-item.cc
index 2ecb8ed6ea409d52e42dab9568215a46dabbd060..184802ca38d45bb64dc1fb837d7e9a9fa933e18a 100644 (file)
@@ -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;