diff options
author | Guillem Jover <guillem@debian.org> | 2009-02-27 06:16:03 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2009-02-27 07:13:51 +0200 |
commit | 22408d0c3dac33a396a451e18f1e8860793928d3 (patch) | |
tree | ad8931d1fbc0d31037367c004eb70d0fe668d47c /ChangeLog | |
parent | 4b9da2295656cd63e04a4fcc707a575b1f5cd88b (diff) | |
download | dpkg-22408d0c3dac33a396a451e18f1e8860793928d3.tar.gz |
libdpkg: Add tar format detection support
Recognize old tar, GNU tar and ustar formats. Abort on ustar with non
empty Prefix field, as we don't properly handle the long names yet.
Failure for PAX archive is already being handled when acting on the
typeflag.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1,5 +1,14 @@ 2009-02-27 Guillem Jover <guillem@debian.org> + * lib/tarfn.h (enum tar_format): New type. + (struct TarInfo): Add new format member. + * lib/tarfn.c (TAR_MAGIC_USTAR, TAR_MAGIC_GNU): New macros. + (struct TarHeader): Add new Prefix member. + (DecodeTarHeader): Detect tar formats based on the magic values. + Abort on tar_format_ustar and an non-empty Prefix. + +2009-02-27 Guillem Jover <guillem@debian.org> + * lib/fields.c (f_boolean): Use PKGPFIELD to assign to the correct member instead of hardcoding to the essential member. |