Fix default permissions

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2023-08-25 17:43:31 +02:00
parent 2e1f94aedf
commit 1b16b341dd

View File

@ -35,7 +35,7 @@ func TestGetConfigWithCustomConfig(t *testing.T) {
contents := []byte("[nvidia-container-runtime]\ndebug = \"/nvidia-container-toolkit.log\"") contents := []byte("[nvidia-container-runtime]\ndebug = \"/nvidia-container-toolkit.log\"")
require.NoError(t, os.MkdirAll(filepath.Dir(filename), 0766)) 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() cfg, err := GetConfig()
require.NoError(t, err) require.NoError(t, err)