mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-29 10:31:14 -03:00
@@ -142,7 +142,7 @@ static wcstring get_runtime_path() {
|
||||
} else {
|
||||
// Don't rely on $USER being set, as setup_user() has not yet been called.
|
||||
// See https://github.com/fish-shell/fish-shell/issues/5180
|
||||
const char *uname = getpwuid(geteuid()).pw_name;
|
||||
const char *uname = getpwuid(geteuid())->pw_name;
|
||||
// /tmp/fish.user
|
||||
std::string tmpdir = "/tmp/fish.";
|
||||
tmpdir.append(uname);
|
||||
|
||||
Reference in New Issue
Block a user