diff options
author | Todd C. Miller <Todd.Miller@sudo.ws> | 2023-03-21 09:22:53 -0600 |
---|---|---|
committer | Todd C. Miller <Todd.Miller@sudo.ws> | 2023-03-21 09:22:53 -0600 |
commit | a6f593ea89d2692631d9c87cad33c70bf537721e (patch) | |
tree | d53e408eeaf6464321fe2a13dbfaf158e9c84ddd /src | |
parent | a3d16a29b128e241e37160b7ef4eff2171a5f40e (diff) | |
download | sudo-a6f593ea89d2692631d9c87cad33c70bf537721e.tar.gz |
visudo: restore controlling terminal after running the editor.
Otherwise, visudo will get SIGTTOU if it tries to write to the
terminal after the editor finishes. Also avoid races by setting
the process group ID in both the parent and child, and grant the
controlling terminal in the parent, not the child.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions