From 47978d2e062527eb80adad789560a5250e431d4b Mon Sep 17 00:00:00 2001 From: Bodigrim Date: Sun, 19 Nov 2023 18:17:07 +0000 Subject: [PATCH] Update changelog --- Codec/Archive/Tar/Check.hs | 9 +++++++-- Codec/Archive/Tar/Types.hs | 15 +++++++++++---- changelog.md | 4 +++- 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/Codec/Archive/Tar/Check.hs b/Codec/Archive/Tar/Check.hs index 0cd2c75..d99cbaf 100644 --- a/Codec/Archive/Tar/Check.hs +++ b/Codec/Archive/Tar/Check.hs @@ -138,8 +138,13 @@ checkEntryTarbomb expectedTopDir entry = -- | An error that occurs if a tar file is a \"tar bomb\" that would extract -- files outside of the intended directory. -data TarBombError = TarBombError FilePath FilePath - deriving (Typeable) +data TarBombError + = TarBombError + FilePath -- ^ Path inside archive. + -- + -- @since 0.6.0.0 + FilePath -- ^ Expected top directory. + deriving (Typeable) instance Exception TarBombError diff --git a/Codec/Archive/Tar/Types.hs b/Codec/Archive/Tar/Types.hs index 37ecbcd..850d6e8 100644 --- a/Codec/Archive/Tar/Types.hs +++ b/Codec/Archive/Tar/Types.hs @@ -537,10 +537,17 @@ fromLinkTargetToWindowsPath (LinkTarget pathbs) = adjustDirectory $ -- The 'Monoid' instance lets you concatenate archives or append entries to an -- archive. -- -data Entries e = Next Entry (Entries e) - | Done - | Fail e - deriving (Eq, Show, Functor, Foldable, Traversable) +data Entries e + = Next Entry (Entries e) + | Done + | Fail e + deriving + ( Eq + , Show + , Functor + , Foldable + , Traversable -- ^ @since 0.6.0.0 + ) infixr 5 `Next` diff --git a/changelog.md b/changelog.md index 03092c1..97e08b5 100644 --- a/changelog.md +++ b/changelog.md @@ -11,9 +11,11 @@ See also http://pvp.haskell.org/faq * Fix tests on 32-bit architectures * Do not leak file handles in `packFileEntry` * Add support for over-long filepaths via GNU extension - * Add `toTarPath'`, `ToTarPathResult`, `longLinkEntry` + * Add `toTarPath'`, `ToTarPathResult`, `longLinkEntry`, `longSymLinkEntry` * Fix handling of hardlinks and symlinks * Add `packSymlinkEntry` and `symbolicLinkPermission`, export `checkEntrySecurity` + * Ignore FAT32 errors when setting modification time + 0.5.1.1 Herbert Valerio Riedel August 2019