blob: 94ec9a9bbf1435142f2a3ce72afe7b2491baaf96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
From 1a9c1bc02d2ed1b8e1723750d8e9eb9fa92fddef Mon Sep 17 00:00:00 2001
From: Matthew Smith <matt@offtopica.uk>
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
|