Home GnuPG
Diffusion GnuPG 6cbbb0bec98e

gpgtar: Fix extracting files with !(size % 512)
6cbbb0bec98eUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

gpgtar: Fix extracting files with !(size % 512)

* tools/gpgtar-extract.c (extract_regular): Handle size multiples
  of RECORDSIZE.
If a hdr->size was a multiple of 512 the last record would
not have been written and the files corrupted accordingly.

Changed to use only if-else.

  • GnuPG-bug-id: T1926
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
aheineckeAuthored on Mar 17 2015, 10:48 AM
wernerCommitted on Mar 17 2015, 11:55 AM
Parents
rG9078b75a7360: common: Add feature to ease using argparse's usage().
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG6cbbb0bec98e: gpgtar: Fix extracting files with !(size % 512) (authored by Andre Heinecke <aheinecke@intevation.de>).Mar 17 2015, 11:55 AM