diff options
author | Manuel Stoeckl <code@mstoeckl.com> | 2021-10-31 14:02:18 -0400 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2024-04-20 13:43:50 +0000 |
commit | 04f232ed99bb68ef7c5169173253d4cdfa840bce (patch) | |
tree | fc6714e845416954ec0de9d0b9e94c50682a102e /src/egl/drivers/dri2/platform_android.c | |
parent | c2b1555a57273a29981dcad80849576e5ce488ba (diff) |
getenv("HOME") is significantly faster than getpwuid_r(...)->pw_dir,
because the latter may require loading NSS libraries, reading
/etc/passwd, etc.
Furthermore, the Linux man pages for getpwuid_r recommend using
getenv("HOME") instead of getpwuid_r, because the user may wish to
change the value of HOME after logging in.
Signed-off-by: Manuel Stoeckl <code@mstoeckl.com>
Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13614>
Diffstat (limited to 'src/egl/drivers/dri2/platform_android.c')
0 files changed, 0 insertions, 0 deletions