Closed ngaro closed 3 years ago
good idea :+1:
An extra commit because of rustysnake's excellent idea in #605 . I know it's "not done" to do multiple things in 1 pr, but i'm planning some other pr's and i don't want too many merge conflicts in case some pr's are merged and some are closed.
These are extremely readable commits anyway...
This is 'the simple version', i would suggest using #608 where i also do a lot more (but everything is still strongly related)
Closing as the change is into the more complete #608.
Purely in theory, the root user can have another name but he will always have the UID 0. Although I have never seen this is in real life, this PR solve this 'problem".
It's also a couple of milliseconds faster because
id
is not forced to look up a name. (Even when asking for a name it will always look up the UID first)