mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
1a22418f9f
This change modifies the chmod bits of build context archives built on windows to preserve the execute bit and remove the r/w bits from grp/others. Also adjusted integ-cli tests to verify permissions based on the platform the tests are running. Fixes #11047. Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
11 lines
222 B
Go
11 lines
222 B
Go
// +build windows
|
|
|
|
package main
|
|
|
|
const (
|
|
// identifies if test suite is running on a unix platform
|
|
isUnixCli = false
|
|
|
|
// this is the expected file permission set on windows: gh#11047
|
|
expectedFileChmod = "-rwx------"
|
|
)
|