summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-09-15 13:32:26 +0100
committerMaxime Coste <frrrwww@gmail.com>2015-09-15 13:32:26 +0100
commit85918d9f15d1a454ec9bebb091eec7d563c162c7 (patch)
tree0cd4ea725204648f268e73e3f4959cd6ee786b4c /src/input_handler.cc
parent0338c0f43702b66d4279eb63a5a81f269420752d (diff)
use getpwuid(geteuid())->pw_name rather than getlogin()
getlogin() can fail when stdin is not a tty on certain configuration as it needs to find a controling terminal.
Diffstat (limited to 'src/input_handler.cc')
0 files changed, 0 insertions, 0 deletions