Skip to content

Commit beeaf09

Browse files
Merge pull request #2006 from bradmwilliams/rpmdiff-permissions-fix
COS-3023: Fixing rpmdiff permissions when running in container
2 parents 1719de8 + 73cc5a4 commit beeaf09

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/cli/image/extract/extract.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,8 @@ func (_ removePermissions) Alter(hdr *tar.Header) (bool, error) {
642642
default:
643643
hdr.Mode = int64(os.FileMode(0755))
644644
}
645+
hdr.Xattrs = map[string]string{}
646+
hdr.PAXRecords = map[string]string{}
645647
return true, nil
646648
}
647649

0 commit comments

Comments
 (0)