fix: Prevent setting record replace flag if !replace is set

This commit is contained in:
Felix Pojtinger
2022-01-30 18:53:31 +01:00
parent 07fdbdba3c
commit f364196e75
+1
View File
@@ -240,6 +240,7 @@ func (o *Operations) Update(
return []*tar.Header{}, err
}
} else {
hdr.PAXRecords[records.STFSRecordReplacesContent] = records.STFSRecordReplacesContentFalse
hdr.Size = 0 // Don't try to seek after the record
if o.onHeader != nil {