Browse Source

* ftparchive/writer.cc:

- init valid-until correctly to prevent garbage entering Release file
tags/debian/0.8.0^2
David Kalnischkies 11 years ago
parent
commit
754b55091a
2 changed files with 4 additions and 2 deletions
  1. +3
    -1
      debian/changelog
  2. +1
    -1
      ftparchive/writer.cc

+ 3
- 1
debian/changelog View File

@@ -9,8 +9,10 @@ apt (0.8.0~pre2) UNRELEASED; urgency=low
- create backups for our extended_states file (Closes: #593430)
* apt-pkg/init.cc:
- set the default values for dir::etc::trusted options correctly
* ftparchive/writer.cc:
- init valid-until correctly to prevent garbage entering Release file

-- David Kalnischkies <kalnischkies@gmail.com> Thu, 19 Aug 2010 00:01:30 +0200
-- David Kalnischkies <kalnischkies@gmail.com> Thu, 19 Aug 2010 00:09:00 +0200

apt (0.8.0~pre1) experimental; urgency=low



+ 1
- 1
ftparchive/writer.cc View File

@@ -925,7 +925,7 @@ ReleaseWriter::ReleaseWriter(string const &DB)
}

time_t const validuntil = now + _config->FindI("APT::FTPArchive::Release::ValidTime", 0);
char validstr[128];
char validstr[128] = "";
if (now == validuntil ||
strftime(validstr, sizeof(validstr), "%a, %d %b %Y %H:%M:%S UTC",
gmtime(&validuntil)) == 0)


Loading…
Cancel
Save