util: tighten on_tty() check a bit, also check stderr
authorLennart Poettering <lennart@poettering.net>
Tue, 5 Jun 2018 19:53:54 +0000 (21:53 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 5 Jun 2018 22:01:22 +0000 (00:01 +0200)
commit8cd0356e9e709d75c89e9f6f97b5fcd30bebc0c8
tree80727064746ff9bf47707ee3fc81b8948632614f
parent44cf5fdd55427973c8206b4b666515c60fe539ca
util: tighten on_tty() check a bit, also check stderr

Let's detect output redirection a bit better, cover both stdout and
stderr.

Fixes: #9192
src/basic/terminal-util.c