Skip to content

Commit

Permalink
Merge pull request #40 from Microsoft/altdatastream
Browse files Browse the repository at this point in the history
Fix filename length check alt data stream
  • Loading branch information
swernli authored Feb 1, 2017
2 parents 307e919 + 1039049 commit fff283a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backuptar/tar.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ func WriteBackupStreamFromTarFile(w io.Writer, t *tar.Reader, hdr *tar.Header) (
bhdr := winio.BackupHeader{
Id: winio.BackupAlternateData,
Size: ahdr.Size,
Name: ahdr.Name[len(hdr.Name)+1:] + ":$DATA",
Name: ahdr.Name[len(hdr.Name):] + ":$DATA",
}
err = bw.WriteHeader(&bhdr)
if err != nil {
Expand Down

0 comments on commit fff283a

Please sign in to comment.