From 1b16b341dddd5256d40249cad78fae0350bed3b6 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Fri, 25 Aug 2023 17:43:31 +0200 Subject: [PATCH] Fix default permissions Signed-off-by: Evan Lezar --- internal/config/config_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/config/config_test.go b/internal/config/config_test.go index f842bbb3..ba03716b 100644 --- a/internal/config/config_test.go +++ b/internal/config/config_test.go @@ -35,7 +35,7 @@ func TestGetConfigWithCustomConfig(t *testing.T) { contents := []byte("[nvidia-container-runtime]\ndebug = \"/nvidia-container-toolkit.log\"") require.NoError(t, os.MkdirAll(filepath.Dir(filename), 0766)) - require.NoError(t, os.WriteFile(filename, contents, 0766)) + require.NoError(t, os.WriteFile(filename, contents, 0600)) cfg, err := GetConfig() require.NoError(t, err)