]> git.ipfire.org Git - thirdparty/systemd.git/commit
terminal-util: add extra validity checks that we operate on a TTY before doing so
authorLennart Poettering <lennart@poettering.net>
Wed, 12 May 2021 11:45:48 +0000 (13:45 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 19 May 2021 14:53:50 +0000 (16:53 +0200)
commite60a4a3c46df1abc6570a026d716c71a6cb1bf5c
treeecb87ec46a965b440ccd52279725a38047b20bb5
parent7eaee902862433ffa45f0e73046226830ac33ab1
terminal-util: add extra validity checks that we operate on a TTY before doing so

Prompted by #19213, but not fixing it.

This is mostly paranoia that we don't do stuff on inodes that aren't
actually ttys.
src/basic/terminal-util.c