File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,8 @@ decodeLongNames = go Nothing Nothing
137
137
Fail $ Right NoLinkEntryAfterTypeKEntry
138
138
139
139
otherEntryPayloadToFilePath :: BL. ByteString -> FilePath
140
- otherEntryPayloadToFilePath = B. unpack . B. takeWhile (/= '\ 0 ') . BL. toStrict
140
+ otherEntryPayloadToFilePath =
141
+ fromPosixString . byteToPosixString . B. takeWhile (/= '\ 0 ') . BL. toStrict
141
142
142
143
castEntry :: Entry -> GenEntry FilePath FilePath
143
144
castEntry e = e
Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ symlinkEntry name targetLink =
288
288
longLinkEntry :: FilePath -> GenEntry TarPath linkTarget
289
289
longLinkEntry tarpath = Entry {
290
290
entryTarPath = TarPath [PS. pstr |././@LongLink|] mempty ,
291
- entryContent = OtherEntryType ' L' (LBS. fromStrict $ packAscii tarpath) (fromIntegral $ length tarpath),
291
+ entryContent = OtherEntryType ' L' (LBS. fromStrict $ posixToByteString $ toPosixString tarpath) (fromIntegral $ length tarpath),
292
292
entryPermissions = ordinaryFilePermissions,
293
293
entryOwnership = Ownership " " " " 0 0 ,
294
294
entryTime = 0 ,
@@ -305,7 +305,7 @@ longLinkEntry tarpath = Entry {
305
305
longSymLinkEntry :: FilePath -> GenEntry TarPath linkTarget
306
306
longSymLinkEntry linkTarget = Entry {
307
307
entryTarPath = TarPath [PS. pstr |././@LongLink|] mempty ,
308
- entryContent = OtherEntryType ' K' (LBS. fromStrict . packAscii $ linkTarget) (fromIntegral $ length linkTarget),
308
+ entryContent = OtherEntryType ' K' (LBS. fromStrict $ posixToByteString $ toPosixString $ linkTarget) (fromIntegral $ length linkTarget),
309
309
entryPermissions = ordinaryFilePermissions,
310
310
entryOwnership = Ownership " " " " 0 0 ,
311
311
entryTime = 0 ,
You can’t perform that action at this time.
0 commit comments