use getpwuid_r(3) instead of getlogin(3)
authorRoy Marples <roy@marples.name>
Sun, 3 Sep 2017 17:33:59 +0000 (18:33 +0100)
committerRoy Marples <roy@marples.name>
Sun, 3 Sep 2017 17:33:59 +0000 (18:33 +0100)
commitdaf672b1eb59f0944d6c387117325d4e1d871c70
tree1e1c0729d27a900baa2b57b0bd85d10329e31ad9
parent9cfa2f7d75f06c0b6b5778dd65635b662535990e
use getpwuid_r(3) instead of getlogin(3)

getlogin(3) isn't thread safe and apparently has some issues.
Also, on Linux Mint at least it always returns NULL.
Use getpwuid_r(3) instead so we are thread safe and always
seems to work.
src/libdhcpcd/wpa.c