mirror of
https://github.com/clearlinux/linux-steam-integration.git
synced 2026-09-06 22:01:27 +00:00
redirect: We might return NULL here.
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
This commit is contained in:
@@ -363,6 +363,10 @@ _nica_public_ struct passwd *getpwuid(uid_t uid)
|
||||
* let us override the home directory to be correct.
|
||||
*/
|
||||
ret = lsi_table.getpwuid(uid);
|
||||
if (!ret) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (uid == getuid() && snap_root && *snap_root) {
|
||||
ret->pw_dir = (char *)snap_root;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user