mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
837b9c6214
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
23 lines
475 B
Go
23 lines
475 B
Go
// +build windows
|
|
|
|
package contenthash
|
|
|
|
import (
|
|
"os"
|
|
|
|
fstypes "github.com/tonistiigi/fsutil/types"
|
|
)
|
|
|
|
// 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
|
|
}
|
|
|
|
func setUnixOpt(path string, fi os.FileInfo, stat *fstypes.Stat) error {
|
|
return nil
|
|
}
|