Add tar.Headers.Winheaders for Windows metadata

This commit is contained in:
John Starks
2016-02-23 12:48:26 -08:00
parent 752c574975
commit 71ac47a42e
3 changed files with 10 additions and 0 deletions
+3
View File
@@ -268,6 +268,9 @@ func (tw *Writer) writeHeader(hdr *Header, allowPax bool) error {
for k, v := range hdr.Xattrs {
paxHeaders[paxXattr+k] = v
}
for k, v := range hdr.Winheaders {
paxHeaders[paxWindows+k] = v
}
}
if len(paxHeaders) > 0 {