1
0
Fork 0
forked from mirrors/tar-split

tar/asm: work with non-utf8 entry names

This commit is contained in:
Vincent Batts 2015-09-23 15:24:15 -04:00
parent 032efafc29
commit cde639172f
4 changed files with 63 additions and 12 deletions

View file

@ -39,7 +39,7 @@ func NewOutputTarStream(fg storage.FileGetter, up storage.Unpacker) io.ReadClose
if entry.Size == 0 {
continue
}
fh, err := fg.Get(entry.Name)
fh, err := fg.Get(entry.GetName())
if err != nil {
pw.CloseWithError(err)
return
@ -56,7 +56,7 @@ func NewOutputTarStream(fg storage.FileGetter, up storage.Unpacker) io.ReadClose
// but since it's coming through the PipeReader, the context of
// _which_ file would be lost...
fh.Close()
pw.CloseWithError(fmt.Errorf("file integrity checksum failed for %q", entry.Name))
pw.CloseWithError(fmt.Errorf("file integrity checksum failed for %q", entry.GetName()))
return
}
fh.Close()