From 71782812fef6cc8ce97aeefaecb3468597c840b9 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Fri, 15 Feb 2019 10:53:30 +0100 Subject: rootless: open the correct file Signed-off-by: Giuseppe Scrivano --- libpod/runtime.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpod') diff --git a/libpod/runtime.go b/libpod/runtime.go index c975f628b..b01674be0 100644 --- a/libpod/runtime.go +++ b/libpod/runtime.go @@ -389,7 +389,7 @@ func NewRuntime(options ...RuntimeOption) (runtime *Runtime, err error) { // If the configuration file was not found but we are running in rootless, a subset of the // global config file is used. for _, path := range []string{OverrideConfigPath, ConfigPath} { - contents, err := ioutil.ReadFile(OverrideConfigPath) + contents, err := ioutil.ReadFile(path) if err != nil { // Ignore any error, the file might not be readable by us. continue -- cgit v1.2.3-54-g00ecf