Use geteuid instead of getuid

This commit is contained in:
Ariel Abreu
2020-07-20 12:36:58 -04:00
parent 86b0756872
commit fa5348c8a9
+1 -1
View File
@@ -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;