From 128aaf6eec812daecbaad6ab15b4d419d6b83fd9 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Thu, 7 Sep 2017 23:16:05 +0100 Subject: [PATCH] Correct spelling of default. Signed-off-by: Ian Campbell --- spec_unix.go | 10 +++++----- spec_unix_test.go | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/spec_unix.go b/spec_unix.go index a3b44c53b..4d431f420 100644 --- a/spec_unix.go +++ b/spec_unix.go @@ -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{ { diff --git a/spec_unix_test.go b/spec_unix_test.go index 41a6471f5..402c53f25 100644 --- a/spec_unix_test.go +++ b/spec_unix_test.go @@ -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,