Skip to content

Commit

Permalink
Merge pull request #8163 from giuseppe/clean-path
Browse files Browse the repository at this point in the history
libpod: clean paths before check
  • Loading branch information
openshift-merge-robot authored Oct 29, 2020
2 parents 464aa36 + 6ad7688 commit cce6c6c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions libpod/boltdb_state_internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package libpod
import (
"bytes"
"os"
"path/filepath"
"runtime"
"strings"

Expand Down Expand Up @@ -104,25 +105,25 @@ func checkRuntimeConfig(db *bolt.DB, rt *Runtime) error {
},
{
"libpod root directory (staticdir)",
rt.config.Engine.StaticDir,
filepath.Clean(rt.config.Engine.StaticDir),
staticDirKey,
"",
},
{
"libpod temporary files directory (tmpdir)",
rt.config.Engine.TmpDir,
filepath.Clean(rt.config.Engine.TmpDir),
tmpDirKey,
"",
},
{
"storage temporary directory (runroot)",
rt.StorageConfig().RunRoot,
filepath.Clean(rt.StorageConfig().RunRoot),
runRootKey,
storeOpts.RunRoot,
},
{
"storage graph root directory (graphroot)",
rt.StorageConfig().GraphRoot,
filepath.Clean(rt.StorageConfig().GraphRoot),
graphRootKey,
storeOpts.GraphRoot,
},
Expand Down

0 comments on commit cce6c6c

Please sign in to comment.