]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/execute.c
execute: check whether we are actually on a TTY before doing TIOCSCTTY
authorLennart Poettering <lennart@poettering.net>
Thu, 26 Oct 2017 16:47:34 +0000 (18:47 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 17 Nov 2017 10:13:44 +0000 (11:13 +0100)
commit1fb0682e78d0869d85a0e9b1f46a3490257aac6e
tree24041bc788fb348249ea77dac896c132ffe61390
parent046a82c1b20f765a8aa704ddea87e1b906d8ded0
execute: check whether we are actually on a TTY before doing TIOCSCTTY

Given that Linux assigns the same ioctl numbers ot multiple subsystems,
we should be careful when invoking ioctls, so that we don't end up
calling something we wouldn't want to call.
src/core/execute.c