]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib: try to find tty in get_terminal_name()
authorSami Kerola <kerolasa@iki.fi>
Sat, 14 May 2016 18:50:41 +0000 (19:50 +0100)
committerSami Kerola <kerolasa@iki.fi>
Sun, 3 Jul 2016 22:35:10 +0000 (23:35 +0100)
commit285c1f3a3eda762897d45f698e94c461d68e8d68
treee2b99cdb523a2f4341e68da397310925df91f402
parenta58b90255c247efc455e6e84ffa0601b325ac090
lib: try to find tty in get_terminal_name()

Try all standard terminal input/output file descriptors when finding tty
name in get_germinal_name().  This should make all invocations of the
function as robust as they can get.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
include/ttyutils.h
lib/ttyutils.c
login-utils/login.c
login-utils/su-common.c
term-utils/write.c