diff options
Diffstat (limited to 'media-gfx/renderdoc/files/renderdoc-1.24-env-home.patch')
-rw-r--r-- | media-gfx/renderdoc/files/renderdoc-1.24-env-home.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/media-gfx/renderdoc/files/renderdoc-1.24-env-home.patch b/media-gfx/renderdoc/files/renderdoc-1.24-env-home.patch new file mode 100644 index 0000000..b4a2230 --- /dev/null +++ b/media-gfx/renderdoc/files/renderdoc-1.24-env-home.patch @@ -0,0 +1,15 @@ +--- a/renderdoc/os/posix/linux/linux_stringio.cpp ++++ b/renderdoc/os/posix/linux/linux_stringio.cpp +@@ -595,11 +595,7 @@ + + rdcstr GetAppFolderFilename(const rdcstr &filename) + { +- passwd *pw = getpwuid(getuid()); +- const char *homedir = pw ? pw->pw_dir : NULL; +- +- if(!homedir) +- homedir = getenv("HOME"); ++ const char *homedir = getenv("HOME"); + + if(!homedir) + { |