]> granicus.if.org Git - sudo/commit
If /dev/tty is not available and no I/O logging plugins are configured,
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 7 Sep 2017 17:32:30 +0000 (11:32 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 7 Sep 2017 17:32:30 +0000 (11:32 -0600)
commit84af812b8ca31c81ddd2b466fa9861b8adae86a7
tree54ce1202b2ce8afb6c83a3da24594f28c521a9d0
parent2c2476f07f85f2e831478d5fe6a24d036b95d556
If /dev/tty is not available and no I/O logging plugins are configured,
fall back on exec_nopty() even if the policy plugin requested a pty.
We never allocate a pty when sudo is not run from a terminal anyway.
src/exec.c
src/exec_nopty.c
src/exec_pty.c
src/sudo_exec.h