]> granicus.if.org Git - sudo/commit
When running the command in a pty, defer the call to exec_setup()
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 5 Mar 2013 11:56:57 +0000 (06:56 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 5 Mar 2013 11:56:57 +0000 (06:56 -0500)
commit19f37400d6825b34f9f13f1db5e3ff0c122bc529
treebaf379561b7b4a6ae8252490e03a3186527f1af0
parenta43318959afe94a87597b94694bbe94d1ff3f84d
When running the command in a pty, defer the call to exec_setup()
until just before we exec the command.  This is consistent with the
non-pty path.  As a side effect, the monitor process runs as root
and not the runas user.
src/exec_pty.c