2017-07-27 21:46:51 +00:00
|
|
|
// +build windows
|
|
|
|
|
|
|
|
package contenthash
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
|
|
|
|
"github.com/tonistiigi/fsutil"
|
|
|
|
)
|
|
|
|
|
|
|
|
// chmodWindowsTarEntry is used to adjust the file permissions used in tar
|
|
|
|
// header based on the platform the archival is done.
|
|
|
|
func chmodWindowsTarEntry(perm os.FileMode) os.FileMode {
|
|
|
|
perm &= 0755
|
|
|
|
// Add the x bit: make everything +x from windows
|
|
|
|
perm |= 0111
|
|
|
|
|
|
|
|
return perm
|
|
|
|
}
|
|
|
|
|
2017-08-04 06:23:44 +00:00
|
|
|
func setUnixOpt(path string, fi os.FileInfo, stat *fsutil.Stat) error {
|
|
|
|
return nil
|
2017-07-27 21:46:51 +00:00
|
|
|
}
|