Skip to content

Commit

Permalink
Update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodigrim committed Nov 19, 2023
1 parent e4d50da commit 47978d2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
9 changes: 7 additions & 2 deletions Codec/Archive/Tar/Check.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
15 changes: 11 additions & 4 deletions Codec/Archive/Tar/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down
4 changes: 3 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]> August 2019

Expand Down

0 comments on commit 47978d2

Please sign in to comment.