Closed Sufod closed 3 years ago
The default case of the 'IsRoot' method was returning 'True' even if the username wasn't root.
I propose this fix which is also removing the trailing \n in the username returned by the whoami command.
\n
Also the fix prevent usernames like "babyroot" or whatever username containing "root" being detected as root.
Thank you very much, merged :>
The default case of the 'IsRoot' method was returning 'True' even if the username wasn't root.
I propose this fix which is also removing the trailing
\n
in the username returned by the whoami command.Also the fix prevent usernames like "babyroot" or whatever username containing "root" being detected as root.