|
@@ -194,7 +194,7 @@ func remapIDs(idMapping *idtools.IdentityMapping, hdr *tar.Header) error {
|
|
// chmodTarEntry is used to adjust the file permissions used in tar header based
|
|
// chmodTarEntry is used to adjust the file permissions used in tar header based
|
|
// on the platform the archival is done.
|
|
// on the platform the archival is done.
|
|
func chmodTarEntry(perm os.FileMode) os.FileMode {
|
|
func chmodTarEntry(perm os.FileMode) os.FileMode {
|
|
- //perm &= 0755 // this 0-ed out tar flags (like link, regular file, directory marker etc.)
|
|
|
|
|
|
+ // perm &= 0755 // this 0-ed out tar flags (like link, regular file, directory marker etc.)
|
|
permPart := perm & os.ModePerm
|
|
permPart := perm & os.ModePerm
|
|
noPermPart := perm &^ os.ModePerm
|
|
noPermPart := perm &^ os.ModePerm
|
|
// Add the x bit: make everything +x from windows
|
|
// Add the x bit: make everything +x from windows
|