mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
Merge pull request #8163 from giuseppe/clean-path
libpod: clean paths before check
This commit is contained in:
@ -3,6 +3,7 @@ package libpod
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"os"
|
"os"
|
||||||
|
"path/filepath"
|
||||||
"runtime"
|
"runtime"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
@ -104,25 +105,25 @@ func checkRuntimeConfig(db *bolt.DB, rt *Runtime) error {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"libpod root directory (staticdir)",
|
"libpod root directory (staticdir)",
|
||||||
rt.config.Engine.StaticDir,
|
filepath.Clean(rt.config.Engine.StaticDir),
|
||||||
staticDirKey,
|
staticDirKey,
|
||||||
"",
|
"",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"libpod temporary files directory (tmpdir)",
|
"libpod temporary files directory (tmpdir)",
|
||||||
rt.config.Engine.TmpDir,
|
filepath.Clean(rt.config.Engine.TmpDir),
|
||||||
tmpDirKey,
|
tmpDirKey,
|
||||||
"",
|
"",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"storage temporary directory (runroot)",
|
"storage temporary directory (runroot)",
|
||||||
rt.StorageConfig().RunRoot,
|
filepath.Clean(rt.StorageConfig().RunRoot),
|
||||||
runRootKey,
|
runRootKey,
|
||||||
storeOpts.RunRoot,
|
storeOpts.RunRoot,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"storage graph root directory (graphroot)",
|
"storage graph root directory (graphroot)",
|
||||||
rt.StorageConfig().GraphRoot,
|
filepath.Clean(rt.StorageConfig().GraphRoot),
|
||||||
graphRootKey,
|
graphRootKey,
|
||||||
storeOpts.GraphRoot,
|
storeOpts.GraphRoot,
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user