technomancy/leiningen — pull request #397 by guns (2012-02-10 01:33:45+00:00)
Title: Replace `whoami` with `id -u` test

`id -u` is in the POSIX and LSB specs [1], while `whoami` is not.
Furthermore, the username of UID 0 can be changed (and is sometimes
recommended in a misguided attempt to increase security).

FreeBSD users logged in as `toor` would also slip through the cracks.

[1]: http://pubs.opengroup.org/onlinepubs/009695399/utilities/id.html
http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/command.html