chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
commit1e07373c3d73c3e9908bf8901315955c0e7150c2
tree0ac4ec38faff9a3621694d1bb9d7843f15ba1373
parente02b020e8dd525520185fed94a89bcbb08b8f2da
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