Skip to content

Commit

Permalink
Use packAscii in longSymlinkEntry
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell committed Nov 19, 2023
1 parent 0870c43 commit b57554a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Codec/Archive/Tar/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ longLinkEntry tarpath = Entry {
longSymLinkEntry :: FilePath -> Entry
longSymLinkEntry linkTarget = Entry {
entryTarPath = TarPath (BS.Char8.pack "././@LongLink") BS.empty,
entryContent = OtherEntryType 'K' (LBS.fromStrict $ BS.Char8.pack linkTarget) (fromIntegral $ length linkTarget),
entryContent = OtherEntryType 'K' (LBS.fromStrict $ packAscii linkTarget) (fromIntegral $ length linkTarget),
entryPermissions = ordinaryFilePermissions,
entryOwnership = Ownership "" "" 0 0,
entryTime = 0,
Expand Down

0 comments on commit b57554a

Please sign in to comment.