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

This commit is contained in:
Felicitas Pojtinger
2022-01-30 18:53:31 +01:00
parent 45de3f3689
commit 0cd390b6b1

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 {