mirror of
https://github.com/containers/podman
synced 2024-10-22 02:03:38 +00:00
libpod: clean paths before check
clean the paths before checking whether its value is different than what is stored in the db. Closes: https://github.com/containers/podman/issues/8160 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
e04e567b96
commit
6ad768852a
|
@ -3,6 +3,7 @@ package libpod
|
|||
import (
|
||||
"bytes"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"strings"
|
||||
|
||||
|
@ -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,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue