mirror of
https://github.com/darlinghq/darling.git
synced 2026-05-24 13:38:37 -05:00
Use geteuid instead of getuid
This commit is contained in:
@@ -564,7 +564,7 @@ void spawnShell(const char** argv)
|
||||
"/usr/local/bin");
|
||||
|
||||
const char* login = NULL;
|
||||
struct passwd* pw = getpwuid(getuid());
|
||||
struct passwd* pw = getpwuid(geteuid());
|
||||
|
||||
if (pw != NULL)
|
||||
login = pw->pw_name;
|
||||
|
||||
Reference in New Issue
Block a user