Set errno to 0 before getpwuid() and check it afterwards and added commandline argument.
Merge branch 'master' of https://github.com/ntrischi/slock