mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 08:18:32 +00:00
Fix default permissions
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
2e1f94aedf
commit
1b16b341dd
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user