From ea0b36bcbb047634944f8fe9693db03bdf7c6a90 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Sat, 16 Mar 2019 15:17:30 +0100 Subject: utils: avoid too long tmp directory or we will easily pass the 108 chars limits for unix paths. Signed-off-by: Giuseppe Scrivano --- pkg/util/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/utils.go b/pkg/util/utils.go index 73dddf2ac..8562afab1 100644 --- a/pkg/util/utils.go +++ b/pkg/util/utils.go @@ -195,7 +195,7 @@ func GetRootlessRuntimeDir() (string, error) { } } if runtimeDir == "" { - tmpDir := filepath.Join(os.TempDir(), fmt.Sprintf("libpod-rundir-%s", uid)) + tmpDir := filepath.Join(os.TempDir(), fmt.Sprintf("run-%s", uid)) os.MkdirAll(tmpDir, 0700) st, err := os.Stat(tmpDir) if err == nil && int(st.Sys().(*syscall.Stat_t).Uid) == os.Geteuid() && st.Mode().Perm() == 0700 { -- cgit v1.2.3-54-g00ecf