Merge pull request #1490 from ijc/defalt

Correct spelling of default.
This commit is contained in:
Michael Crosby 2017-09-08 10:47:55 -04:00 committed by GitHub
commit 52fbc5f03a
2 changed files with 6 additions and 6 deletions

View File

@ -25,7 +25,7 @@ var (
}
)
func defaltCaps() []string {
func defaultCaps() []string {
return []string{
"CAP_CHOWN",
"CAP_DAC_OVERRIDE",
@ -79,10 +79,10 @@ func createDefaultSpec() (*specs.Spec, error) {
GID: 0,
},
Capabilities: &specs.LinuxCapabilities{
Bounding: defaltCaps(),
Permitted: defaltCaps(),
Inheritable: defaltCaps(),
Effective: defaltCaps(),
Bounding: defaultCaps(),
Permitted: defaultCaps(),
Inheritable: defaultCaps(),
Effective: defaultCaps(),
},
Rlimits: []specs.POSIXRlimit{
{

View File

@ -21,7 +21,7 @@ func TestGenerateSpec(t *testing.T) {
}
// check for matching caps
defaults := defaltCaps()
defaults := defaultCaps()
for _, cl := range [][]string{
s.Process.Capabilities.Bounding,
s.Process.Capabilities.Permitted,