fix: create user tmp directory before the app one (#2395)
Otherwise on a shared machine, the `/tmp/k9s` directory will be owned by the first user to lanch `k9s` command. The other users will get a "permission denied" error.mine
parent
736f6bfaa5
commit
f5f3278e17
|
|
@ -282,7 +282,7 @@ func userTmpDir() (string, error) {
|
|||
return "", err
|
||||
}
|
||||
|
||||
dir := filepath.Join(os.TempDir(), AppName, u.Username)
|
||||
dir := filepath.Join(os.TempDir(), u.Username, AppName)
|
||||
|
||||
return dir, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue