Currently, to get the current user login we parse utmp. The problem is that more than one user can be logged on the system and the username may not be the last connected user one. A new way to get the username need to be found.
For now, I propose to combine authorised devices for all users present on the system.
However, it is important to note that utmp is not really as reliable as who though it would be ...
Currently, to get the current user login we parse utmp. The problem is that more than one user can be logged on the system and the username may not be the last connected user one. A new way to get the username need to be found.