`whoami`: revert "`whoami`: misc improvements, including...".
This reverts commit 8a2afdc33a
.
so apparently `getlogin()` returns the user the process is running under, and when it is called when you are in a sudoed bash, it returns the login username instead of root.
as you may be able to guess, that is not exactly intended behaviour.
master
parent
9eb02a4954
commit
23bc854b51
Loading…
Reference in new issue