Skip to content
Snippets Groups Projects
  1. Jun 26, 2024
  2. Jun 25, 2024
  3. Jun 17, 2024
  4. Jun 14, 2024
    • Cédric Marie's avatar
      Create a changelog · 34945f67
      Cédric Marie authored
      
      Add CHANGELOG.md file, to describe the changes since the first release.
      
      Signed-off-by: default avatarCédric Marie <cedric@hjuvi.fr.eu.org>
      34945f67
    • Cédric Marie's avatar
      Don't rely on sorted checksum files · 9c33edc6
      Cédric Marie authored
      
      If the checksum file is not sorted as expected (case-sensitive
      alphabetical order), some files will be detected as removed and added,
      and their checksum will be computed again.
      
      This can happen if the checksum file was sorted into case-insensitive
      alphabetical order, for example with "sha256sum *" command in a
      terminal with en_US.UTF-8 locale.
      
      To avoid this, read all the checksums into an array at the beginning,
      and then, when parsing the content of the directory, search for each
      file in the whole array, whatever its position.
      
      In the end, reorder the content of the checksum file if necesssary,
      even if there is no other change.
      
      The algorithm is slightly less efficient if the checksum files were
      created by Unaltered (and thus sorted as expected), but it is more
      robust and compatible with checksum files created by other tools.
      
      Signed-off-by: default avatarCédric Marie <cedric@hjuvi.fr.eu.org>
      9c33edc6
  5. May 17, 2024
  6. May 15, 2024
    • Cédric Marie's avatar
      Check the last modification time · 2c65d212
      Cédric Marie authored
      
      Read the last modification time of each file. If a file is already
      listed, but more recent than the checksum file, then it means that the
      checksum file is not up to date for this file.
      
      In that case, the file must not be considered altered (bad checksum).
      It has obviously been deliberately modified after the checksum file was
      created or updated for the last time.
      
      * When using the 'list' or 'check' command, a warning must be printed
        (with the 'check' command it is not even necessary to verify the
        checksum).
      * When using the 'update' command, the checksum of the file must be
        updated.
      
      Signed-off-by: default avatarCédric Marie <cedric@hjuvi.fr.eu.org>
      2c65d212
  7. May 13, 2024
  8. May 06, 2024
Loading