From 1a9c1bc02d2ed1b8e1723750d8e9eb9fa92fddef Mon Sep 17 00:00:00 2001 From: Matthew Smith Date: Thu, 10 Feb 2022 18:02:37 +0000 Subject: [PATCH] Use getenv("HOME") instead of getpwuid --- renderdoc/os/posix/linux/linux_stringio.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/renderdoc/os/posix/linux/linux_stringio.cpp b/renderdoc/os/posix/linux/linux_stringio.cpp index c704fc7fc..9a556ec16 100644 --- a/renderdoc/os/posix/linux/linux_stringio.cpp +++ b/renderdoc/os/posix/linux/linux_stringio.cpp @@ -595,8 +595,7 @@ rdcstr GetTempRootPath() rdcstr GetAppFolderFilename(const rdcstr &filename) { - passwd *pw = getpwuid(getuid()); - const char *homedir = pw->pw_dir; + const char *homedir = getenv("HOME"); rdcstr ret = rdcstr(homedir) + "/.renderdoc/"; -- 2.35.1