summaryrefslogtreecommitdiff
path: root/libpod/runtime.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2019-02-15 10:53:30 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2019-02-15 10:53:50 +0100
commit71782812fef6cc8ce97aeefaecb3468597c840b9 (patch)
tree8ef5416ccf3d1b2c82cc5f02fb4b5f8443c3a9c4 /libpod/runtime.go
parent81ace5caaca844eda4be48245590ea54bdd0cba3 (diff)
downloadpodman-71782812fef6cc8ce97aeefaecb3468597c840b9.tar.gz
podman-71782812fef6cc8ce97aeefaecb3468597c840b9.tar.bz2
podman-71782812fef6cc8ce97aeefaecb3468597c840b9.zip
rootless: open the correct file
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'libpod/runtime.go')
-rw-r--r--libpod/runtime.go2
1 files changed, 1 insertions, 1 deletions
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