diff --git a/pkg/util/utils_supported.go b/pkg/util/utils_supported.go index 024c93daceef..28c52f293602 100644 --- a/pkg/util/utils_supported.go +++ b/pkg/util/utils_supported.go @@ -28,7 +28,7 @@ func GetRootlessConfigHomeDir() (string, error) { // GetRootlessPauseProcessPidPath returns the path to the file that holds the pid for // the pause process. func GetRootlessPauseProcessPidPath() (string, error) { - runtimeDir, err := GetRootlessRuntimeDir() + runtimeDir, err := homedir.GetRuntimeDir() if err != nil { return "", err } diff --git a/pkg/util/utils_test.go b/pkg/util/utils_test.go index efc256e48439..dd53ac1c3614 100644 --- a/pkg/util/utils_test.go +++ b/pkg/util/utils_test.go @@ -764,3 +764,9 @@ func TestProcessOptions(t *testing.T) { }) } } + +func TestGetRootlessPauseProcessPidPath(t *testing.T) { + dir, err := GetRootlessPauseProcessPidPath() + assert.NoError(t, err) + assert.NotEqual(t, dir, "libpod/tmp/pause.pid") +}